Hi there everyone,
I'm writing a bot blocking script and I'm to the point where I'm writing the admin interface where they can enter data that the script will check for partial matches on the HTTP info, and if it finds a match, it stops page load.
For instance, if the HTTP_REFERER has "viagra" somewhere in it, or the REMOTE_ADDR contains "208.109.390.", then it will stop the loading process.
I know I could do this with LIKE %viagra%, but is it the best way to do it? I know REGEX is the darling of many, but I don't know if it's better to use for something like this.
Any thoughts and suggestions would be greatly appreciated.
thanks,
json