The IP Trap,
This will add protection to your site to prevent explicit attacks by snoopers, bad bots, and any other scum bag that wants to harm your site.
How it works in brief.....
In your robots.txt file there is code that disallows robots (search engines) from indexing certain files and folders, the trap has a folder called personal with an index.php file inside it, the personal folder is at the top of the robots.txt, now all good search engine bots will follow this and not go there, bad bots go right for it, upon accessing the folder they activate the index.php an the trap is sprung.
The bots IP number is now written to an IP_Trapped .txt file and redirected to a blocked.php page, there is a separate script that monitors every single users IP number that visits your site and compares it to the IP_Trapped.txt stored IP numbers, when one matches it is instantly redirected to the blocked.php page, and until the IP number is removed from the IP_Trapped.txt this blocked page is all the IP user will ever see!
.png)
Version 5.2 Released here first!
This latest version is the result of weeks of testing to get the code perfect, whilst minimising the installation time.
Only two lines of code to alter in two files, that it!
Robustness of code and reliability of the version makes this the best yet!
Versions 5.1 Released,
Now included is the option to ban by User-Agent, see a UA you do not like or is causing you trouble?
Add it to the list and it will be redirected to your blocked page every time.
Version 5.2, this download
Added htaccess to the personal folder to prevent 403, 404 redirects being excluded from being trapped, this affects scum searching for personal/file_manager.php etc..
Also a slight code change for the strcmp function.
Full details in package
Both of the offered versions work perfectly, update is due to extra features not code correction.
|