Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Ban Spiders by User Agent Details »
Ban Spiders by User Agent
Mod Version: 3.1.2, by Simon Lloyd (Coder) Simon Lloyd is offline
Developer Last Online: Aug 2019 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (64 votes - 4.86 average) Installs: 483
Released: 09 Aug 2011 Last Update: 18 Dec 2014 Downloads: 1910
Supported Uses Plugins  

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?
http://www.vbulletin.org/forum/showp...&postcount=105

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

FAQ
http://www.vbulletin.org/forum/showp...&postcount=137

How does it work?
http://www.vbulletin.org/forum/showp...&postcount=381

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

How do i ban a bot?
http://www.vbulletin.org/forum/showp...&postcount=318
http://www.vbulletin.org/forum/showp...7&postcount=51

Where's output.txt located?
http://www.vbulletin.org/forum/showp...&postcount=216

Bad bot lists
http://www.vbulletin.org/forum/showp...&postcount=259
http://www.vbulletin.org/forum/showp...&postcount=224
http://www.vbulletin.org/forum/showp...&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

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
  1. 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)
  2. 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 to cope with 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
25th November Minor fix for blank forumid fixed
26th November 2011 Fixed version check & create thread Off by default
17th December 2014 Version 3.1.0 uploaded, Hook changed extra logging and statistics added by Ozzy47 (Chris)
18th December 2014 Version 3.1.1 uploaded, prevented spiders being counted when mod turned off.
17th December 2014 Version 3.1.2 uploaded, due to rogue code from another mod
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

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Ban Spiders by User Agent Simon Lloyd vBulletin 3.8 Add-ons 188 20 Jul 2015 12:34

  #196  
Old 30 Oct 2011, 12:50
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
Originally Posted by ForceHSS View Post
send will test
Thanks PM sent
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!
Reply With Quote
  #197  
Old 31 Oct 2011, 07:56
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
New feature added

New feature, you can now automatically redirect the spider/bot to their own IP!
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!
Reply With Quote
  #198  
Old 03 Nov 2011, 23:29
Bengie Bengie is offline
 
Join Date: Sep 2011
Well there are a lot of happy people out there, but alas, they are all much more clever than I am.
I have downloaded the mod and it's sitting on my desktop, where do I upload it to please?
Also, what is WOL?
Reply With Quote
  #199  
Old 04 Nov 2011, 00:52
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Originally Posted by Bengie View Post
Well there are a lot of happy people out there, but alas, they are all much more clever than I am.
I have downloaded the mod and it's sitting on my desktop, where do I upload it to please?
Also, what is WOL?
upload the files same place where your forums files are use a ftp program then go to your admin panel plugins and install the xml
Reply With Quote
  #200  
Old 04 Nov 2011, 05:36
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
Originally Posted by ForceHSS View Post
upload the files same place where your forums files are use a ftp program then go to your admin panel plugins and install the xml
Force there isn't any files to upload , simply go to Admincp>Plugins & Products>Product Manage Products>import new product and thats it, if you don't have a previous version there is no need to check the overwrite radio button.

WOL = Who's On Line
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!
Reply With Quote
  #201  
Old 04 Nov 2011, 07:24
Bengie Bengie is offline
 
Join Date: Sep 2011
Thank you gentlemen. I did the import and 3.0.2 is now showing in my 'Installed Products', is that all I have to do, is it now active?

I might be almost 70, but how embarrasing, WOL = Who's On Line, sorry, should have seen that.

Last edited by Bengie; 04 Nov 2011 at 07:46.
Reply With Quote
  #202  
Old 04 Nov 2011, 15:15
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Originally Posted by Simon Lloyd View Post
Force there isn't any files to upload , simply go to Admincp>Plugins & Products>Product Manage Products>import new product and thats it, if you don't have a previous version there is no need to check the overwrite radio button.

WOL = Who's On Line
was thinking of another plugin, really should sleep more lol
Reply With Quote
  #203  
Old 04 Nov 2011, 15:36
Bengie Bengie is offline
 
Join Date: Sep 2011
Wonderful stuff, I can't thank you enough, and for the install instruction as well.
Baidu was creating havoc on my forum, sometimes there were around 30 at the same time and now there are none.

I have voted this mom and recommend the writer is taken out for a beer or 3.

Installed and working fine. (vb 4.1.5)

Last edited by Bengie; 04 Nov 2011 at 15:45.
Reply With Quote
  #204  
Old 04 Nov 2011, 15:59
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
Originally Posted by Bengie View Post
Wonderful stuff, I can't thank you enough, and for the install instruction as well.
Baidu was creating havoc on my forum, sometimes there were around 30 at the same time and now there are none.

I have voted this mom and recommend the writer is taken out for a beer or 3.

Installed and working fine. (vb 4.1.5)
I'll be round to colect those beers

Glad it's working as you expected!
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!
Reply With Quote
  #205  
Old 04 Nov 2011, 17:20
gigawiz gigawiz is offline
 
Join Date: Dec 2008
Suggestion

Can you modify this mod so as the output.txt file is stored in a folder of your choosing which can then be CHMOD for read/write access, I don't like the idea of having my entire forum folder having that sort of access.

Unless I am missing something of course :P

Epic mod/hack this thanks very much.

marked as installed.

gigawiz.
Reply With Quote
  #206  
Old 04 Nov 2011, 18:31
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
Your entire forum folder isn't being given "that sort of access", it's simply one text file all restictions that all your other files have are and have never been unchanged, if i get time (really bogged down with working 2 jobs at the moment) i'll add a custom box so that you can set where the file is written but if you CHMOD that to read only then how can it write to it?

The contents of the output.txt do not give any information about your site that you cannot get from browsing your site or its users, the fact that it's just bot information makesit even less desirable info

Glad you like the mod
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!
Reply With Quote
  #207  
Old 04 Nov 2011, 20:04
victorvu victorvu is offline
 
Join Date: Mar 2011
Simon:

thank you for this awesome mod. It works like a charm.

However, I am receiving this below and If I do not want them to visit my webiste, what else can I do ? Is there a way to ban them when they type in the domain namẻ

DATE: 11-04-2011 14:58:13

UserAgent: Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)

has visited

http://kieumau.net/index.php/forum/f...E1%BA%A3?ltr=F

Found In Your List As Baidu

Regards,

Ban Spider Mod

Installed, voted and nominated.

Victor
Reply With Quote
  #208  
Old 04 Nov 2011, 20:29
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
Don't worry that you are getting notification, they have many many ip's, they are getting redirected before your forum, thread or post that they request loads, you get notofication of the thread they attempted to call.

So in a nutshell Victor, the mods working great, relax and worry not

Edit: You don't need to use the full UA to ban them, you can simpy use Baidu in the list and that will do the trick, using the full UA means you are only banning anything that visitis with that entire UA so if they use one thats slightly different they'll get through but using just Baidu will trap them all!
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!

Last edited by Simon Lloyd; 04 Nov 2011 at 20:36.
Reply With Quote
  #209  
Old 04 Nov 2011, 20:39
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
Victor, you should also upgrade to the very latest version 3.0.2
__________________
Kind regards,
Simon Microsoft Office Help
My Mods: Find my modifications here
Please do not pm me for support unless i have invited you to!
Reply With Quote
  #210  
Old 04 Nov 2011, 23:43
victorvu victorvu is offline
 
Join Date: Mar 2011
Originally Posted by Simon Lloyd View Post
Don't worry that you are getting notification, they have many many ip's, they are getting redirected before your forum, thread or post that they request loads, you get notofication of the thread they attempted to call.

So in a nutshell Victor, the mods working great, relax and worry not

Edit: You don't need to use the full UA to ban them, you can simpy use Baidu in the list and that will do the trick, using the full UA means you are only banning anything that visitis with that entire UA so if they use one thats slightly different they'll get through but using just Baidu will trap them all!
Simon:

Thanks for the info .

I look through a list of 20 emails and found out that the duration for each email was 4 minutes consistantly. So, they must automated the access and record the results if any. That is why if somehow, as soon as they enter the domain name, the redirect will take them to a sex website for example. Before I have 5 spiders on my site 24 hours a day. I donot know why they target my website.

It is working awesome with your mod.

Thanks again.

Victor
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:10.

Layout Options | Width: Wide Color: