Hi there Mark,
thank you very much for your reply.
1) it's called from the db because it's a script that will be released and the point of the script is to centrally control administration of this and make it easy to control. If I ask them to hard code it in, I might as well ask them to write the script themselves.
2) My referer is determined by $HTTP_REFERER, since I define it at the top of the page by $HTTP_REFERER = $_SERVER['HTTP_REFERER'];
3) I understand. This was a holdover from a previous author's script, and I thought maybe that they did this to prevent flooding.
4) I will be very sure to have a less silly message here.
5) I will drop the match
6) Would setting it to plain text really save that much in the way of resources?
7) I most definitely will set it to forbidden.
8) I thought I was using only one regex. I create an array and the array contains every blocked phrase in the db. Where is the loop? Do you mean the loop that grabs all of the phrases from the db?
) Addendum: I guess I could create a flat file that got written to for the regex check, if you think it would make that large of a difference.
Thanks very much for taking the time to let me know how I can fix the problems and make the script better.
thanks,
json