Recommended: Functions that filter uncivilized characters in asp programs % Functioncutbadchar(str) badstr=No|text|ming|character|column|format' Fill in uncivilized words here, use|separate badword=split(badstr,|) Fori=0toUbound(badword) Ifstr(str,badword(i))0then str=Replace(str,badword(i),***) EndIf Next cutbadchar=str EndFunct
<%
response.write replace(rs(field X),searchname,<font color=#FF0000> & searchname & </font>)
%>
Description: rs is the record set object, and searchname is the search keyword
Share: Set a method that prohibits execution of ASP programs in a directory in IIS ASP programs are easily hacked. In fact, as long as we take effective protective measures, we can still prevent some attacks. Usually, hackers will find out the upload vulnerability of your website, upload some Trojans to the website directory, and perform some illegal operations. In fact, when we upload files in the background of the website, we usually upload files to a fixed directory on the website, for example