I've call my StringList BWSL. After initializing the StringList, and adding the words, loop through and see if any of the words you've added are present.
If they are, redirect, or use other handling depending on the type of application you're writing. My form element on the calling web page is in the variable "Tag"
EXAMPLE:
---------------------------------------------------------------------------------
for I:=0 to BWSL.Count-1 do
if pos (BWSL.Strings[I], LowerCase(tag)) > 0 then begin
Response.SendRedirect(Request.ScriptName+'/BadRequest?Bid=6&Extra=The_Word,_Character,_or_Phrase,_' + BWSL.Strings[I] +'_is_Prohibited.');
Exit;
end;
---------------------------------------------------------------------------------
No comments:
Post a Comment