This article mainly introduces the restriction of certain characters in comments in ASP. The principle is to search through the instr function. It feels very simple, but the writing is still a bit awkward, and I feel like A Huinan
Sub CheckCanSubmit(str) Dim connt,connts connt="Mark Six Lottery, free movies, Amway, http, www,<a" connts = split(connt,",") For each glword in conntsif instr(str,glword)<>0 thenResponse.Write("<script>alert('Illegal operation');window.history.go(-1);</script>") Response.End() end if next End Sub