Checking IP's against spammer database
There is a good free RBL that checks users against a database of known forum spammers. You can check a users IP against it before allowing them to do anything on your site. Here is some example PHP code:
Code:
function blacklisted($ip) Enjoy! |
Hi Jeff .. where should we place this code, please?
In which file Thanks G |
Quote:
|
OK maybe I am not understanding how this works :)
the above code which starts with function blacklisted I thought that the code would check with the SPAM IP site? so I was wondering where the code would be placed my apologies in advance if I have the wrong end of the stick Thanks G |
If you have some PHP code, and you want to check to see if an IP address is of a known spammer, put the function in the first post of this thread into your PHP script. WHERE exactly I cannot tell you as that is different in every script.
Then you just pass the IP to the function and it will tell you true or false: Code:
if (blacklisted('123.123.111.123')) |
There's a plugin for this: http://www.vbulletin.org/forum/showthread.php?t=176481
Works quite well. :) |
Thanks Jeff
|
All times are GMT -4. The time now is 08:11 PM. |
Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.