PDA

View Full Version : Miscellaneous Hacks - Ban Spiders by User Agent


Simon Lloyd
08-08-2011, 10:00 PM
What this mod does
With this mod you can enter User Agents to watch or ban, you can also recieve emails or have an Output.txt created and updated with time and date of visits. It doesn't just have to be spiders, you can watch, log or ban any useragent!

How to install
Simply import the product ban_spider, the mod is active by default but none of the other options are turned on.

What is a UserAgent?
http://en.wikipedia.org/wiki/User_agent

Understanding a UserAgent string
http://user-agent-string.info/parse

Genuine User Getting Blocked?
https://vborg.vbsupport.ru/showpost.php?p=2252866&postcount=105

Tools to help
http://whatsmyuseragent.com/SwitchingUserAgents.asp
http://www.botsvsbrowsers.com/SimulateUserAgent.asp

FAQ
https://vborg.vbsupport.ru/showpost.php?p=2256512&postcount=137

What's a bot?
http://en.wikipedia.org/wiki/Spambot

How do i ban a bot?
https://vborg.vbsupport.ru/showpost.php?p=2319989&postcount=318
https://vborg.vbsupport.ru/showpost.php?p=2244937&postcount=51

Where's output.txt located?
https://vborg.vbsupport.ru/showpost.php?p=2265096&postcount=216

Bad bot lists
https://vborg.vbsupport.ru/showpost.php?p=2281880&postcount=259
https://vborg.vbsupport.ru/showpost.php?p=2265667&postcount=224
https://vborg.vbsupport.ru/showpost.php?p=2309385&postcount=281

Tested on vb3.7.x, vB3.8.x , vB4.x.x but should work on any version.

__________________________________________________ __________________
Special thanks to:
Lior
KH99
BoP5
for helping me sort out a few issues

...and beta testers
ForceHSS (Special thanks to Force for latest testing!)
ozzy47
GreyHost

If you use this please mark as INSTALLED
MOTM for October has started so please visit the link below :)
Please Vote MOTM, Click Here! (https://vborg.vbsupport.ru/showthread.php?p=2251846#post2251846)

History
9th June 2011 Orginal xml added
12th June 2011 Added both email notification and text file logging
22nd June 2011 Version 2.0.0, Added create thread on activity

Added match facility you can now use something like Yandex and it will match MOZILLA/5.0 (COMPATIBLE; YANDEXBOT/3.0; +HTTP://YANDEX.COM/BOTS)
Added clickable link to visited thread

22nd September 2011 added user redirect url selection
08th October Beta testing started for thread creation.
20th October Beta testing started for emailing.
21st October Beta testing complete Ver 3.0.0 uploaded
29th October minor fix added for empty userid on thread creation
30th October Beta testing automatic redirection to spiders/bots IP
31st October New xml uploaded with automatic redirect to IP

The Bad Bots list is now included in the product :)
Please prune out all those that you wish to be able to see your site (i suggest you definately prune out "DA" and "Custo" :))

Support will now only be given to those who have this mod marked as INSTALLED

Simon Lloyd
09-09-2011, 08:14 AM
List of bad bots added, please remember to prune out all those that you wish to be able to see your site!

Simon Lloyd
10-31-2011, 07:55 AM
New xml uploaded with a new feature, you can now automatically redirect the bot/spider to their own IP!

Simon Lloyd
02-02-2013, 04:04 AM
I'm looking for feedback guys!
Would it be beneficial to automatically ban bots that exceed x number of bots at any one time?

So, the likes of Baiduspider send around 200 at any one time, so if i entered say 150 (in place of x) in a settings box then they would automatically get added to the ban list, let me know your views as i'm not going to work on something nobody feels is needed :)

Digital Jedi
02-02-2013, 04:37 AM
Actually, yeah, I can't see as how that's a bad idea.