![]() |
Ban Spiders by User Agent
1 Attachment(s)
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....&postcount=105 Tools to help http://whatsmyuseragent.com/SwitchingUserAgents.asp http://www.botsvsbrowsers.com/SimulateUserAgent.asp FAQ https://vborg.vbsupport.ru/showpost....&postcount=137 What's a bot? http://en.wikipedia.org/wiki/Spambot How do i ban a bot? https://vborg.vbsupport.ru/showpost....&postcount=318 https://vborg.vbsupport.ru/showpost....7&postcount=51 Where's output.txt located? https://vborg.vbsupport.ru/showpost....&postcount=216 Bad bot lists https://vborg.vbsupport.ru/showpost....&postcount=259 https://vborg.vbsupport.ru/showpost....&postcount=224 https://vborg.vbsupport.ru/showpost....&postcount=281 VB4.x Version of Ban Spiders By User Agent Tested on vb3.7.x, vB3.8.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
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, Extra logging and statistics added by Ozzy47 (Chris) 18th December 2014 Version 3.1.2 uploaded, due to rogue process from other mod 18th December 2014 Version 3.1.3 uploaded, due to previous one being VB4 mistakingly uploaded 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 |
**reserved**
9th June 2011 Orginal xml added 12th June 2011 Added both email notification and text file logging 22nd June 2011 Added create thread on activity
|
Thank you
|
You're welcome, please remember to mark as Installed if you have used this :)
|
Time to be cheeky :D
Would it be possible to have this mod post a thread when you get hit by a tracked user agent? Ie thread title user agent blah blah ip blah blah Thread body same as title but with added suspicious behaviour / known bad agent etc Just an idea. A lot of web site owners can take a hit. If you do a google, unless the likes of stop forum spam / project honey pot have the ips listed, there is no real other warning on the net. What format is the test file in at present |
Test file? if you mean that file that is written to it's simply a text file. I'd look at the posting to a thread but to be honest you don't really want that, install the mod, add a user agent (just one) and then turn on the "write to text file" leave it on for say an hour, turn it off then check the size of the text file and the number of entries!, until the spider/bot/person get the message and remember the permanent redirect you'll get hundreds of notifications, so creating a thread or post every time would soon bloat your database for no reason.
Do you really want it? |
**UPDATED** Lee C's request filled :)
|
Cheers for that Simon. Im looking for an alternative to Bad Behavior to use.
Bad behavior is still shown as being beta Something to block specific user agents, ie Baidu, Magpie spider etc and not risk unwittingly blocking the likes of google Top man |
Hi does this stop all spider bots because i would still like to be index by google/yahoo
please can you help. |
It only stops those that you designate :)
|
any way this will work on 4.1.5 PL1
|
Uninstall this version and install the version for vb4.x.x https://vborg.vbsupport.ru/showthread.php?t=268208
|
both of the files are the same why install the other one when both are the same?
|
force is right both are the same. Any way will install the other one
|
Quote:
Quote:
|
List of bad bots added in modification description, please remember to prune out all those that you wish to be able to see your site!
|
Good to see this one has not been abandoned like another mod seems on here :up:
If we want to add blocks on other user agents that have spaces in them ie Windows XP, MSIE 7.0b or MSIE 5.0 Would it be a simple case of Windows\XP MSIE\5 With \ indicating the space If anyone wonders why those three have been singles out, there is no such user agent as Windows XP, MSIE 5 is god knows how many years old and MSIE 7.0b is a beta version and windows auto updates |
Lee, the mod looks for a text match so "Windows\XP" will be different to "Windows XP" although i will do some testing as i've had a minor issue raised in the vb4 version that a single user can't login and gets redirected but nothing in his UA matches anything in their list, so it may be a partial match where there is a space.........i'll post back when the issue has been investigated and resolved.
|
Been having a play and its beyond simple for banning them :up:
Windows XP is just that. Windows 3.1. 95 and ME were those endings in the user agents, but XP is a fake one. Microsoft changed how it was displayed in the user agent to Windows NT 5.1 I run a test on bots vrs browsers user agent test if a block is working http://www.botsvsbrowsers.com/SimulateUserAgent.asp Add the user agent to admin cp and then do a test there to see if its killed them. In your file you have SOSO from China, they have now changed their user agent to jikespider |
Lee, thanks for info and the testing, so as i said "windows xp" is different to "windows\xp" in your test?
|
I tried three variants and made sure I wernt going to be locked out the forums. Never do anything without a get out of trouble method :D
First off was two versions of xp Windows*XP Windows\XP Tried viewing over at bots vrs browsers with a simple user agent of Windows XP When neither of those two worked, I made sure I had another browser fired up, just in case I blocked myself and any browser with any mention of windows in the user agent And tried plain old Windows XP Worked a treat. Same as blocking Windows 95, Windows 98, Windows ME and MSIE 5 No need for any extra variables :up: |
Quote:
|
Lee, you're a star :), i just checked the UA from the vb4 version issue and it's not this mod keeping their client out of the forum, until you nudged me i'd completely forgot about bots v browsers even though i have quoted it many times here at vb.org in the past!
|
Im just good at breaking things, ask any software developer or skin seller that I use :D
Another one to consider adding to the block list is UnwindFetchor/1.0 They are another scrape for gain outfit, by the looks of it |
Another one thats good for monitoring or just plain banning is this
;) I checked it works as is. Its a give away to a messed about with user agent Google JP must be getting busy :D |
Hi Lee, did you mean the wink?
|
Should have wrapped it in php tags :D
PHP Code:
PHP Code:
They think by taking out some information, you wont catch on and ban them :D One use agent that had a bad habit of trying to inject base64 when I used the other blocking system was this one libwww-perl Another that only ever hits from ips on honeypot is this w3m/ The good thing about this mod, you can track and then decide if its worth banning Older user agents are worth watching as well. Firefox is an easy one to watch. Firefox gives you the date the version came out This example PHP Code:
I ban Firefox/1 and Firefox/2 Opera dont have many use it. I personally love the browser, but its another browser that auto updates. You can catch a lot of low life that way Present version of Opera is Version/11.51 |
Hi Guys, just to let you know there is a brand new product uploaded with everything fixed :)
|
New product uploaded now with automatic redirect to spiders/bots own ip :)
|
marked as installed
I uninstalled the vb4 version and installed this one as per the instruction earlier on in the thread. This mod really is just epic and no vb forum should be without it. EDIT - I have disabled the mod from creating new threads but it is still doing it, I have removed all the user info from the settings (user ID and forum ID) and it still posts threads which do not exist! Please help before I go totally round the bend :( Thank you in advance. gigawiz. |
is it still posting threads? i'm using the vb3.8 version my thread creation is turned off and mine isn't creating them - post back please.
|
This seems to work well! I installed, activated, and the list of 'visitors' dropped quite around 2/3.
Keep up the good work. I think the people at vBulletin proper should get you on board and have this added as a default feature of vBulletin. Help this guy keep the agent list up-to-date. |
Quote:
|
Boofo, after my recent update it now will not fire if there isn't a forumid present, if a username is left out it automatically enters the userid 1 (as most of us start our forums off with our username) and finally the create thread option which really should have been off by default (my bad!) is now set to off by default :)
|
Quote:
Can you mark this mod as installed please? |
Quote:
|
Quote:
https://www.vbulletin.com/forum/show...d-spammer-trap A good nine pages there |
Heres another for your low life with limited braincell capacity set forth and multiply deployment system
Firefox/3.0b5 Thats a free browser, beta version Released: April 2, 2008 Had someone with a Romanian set of ips hit me with that |
I just wanted to bump this thread and point out that this is by far one of the best and most effective anti-spam, anti-scraper, anti-harvester, anti-banned member, anti-WHATEVER mods available. It might take a little bit of time to get it setup for your specific forum, and for who you want/don't want to access your site, but once you have it setup, it's BULLETPROOF and very effective. If you're hoping to install a magical mod that magically gets rid of all the unwanted visitors from ever going to your site, keep living in magical fairy land because any effective solution is going to require some trial and error and some configuration. This mod is no exception, but once it's setup, it's absolutely fantastic!
I rated it 5 stars! |
Glad you like it, if you team it up with my Ban IP mod you'll get that better flexibility.
|
All times are GMT. The time now is 10:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|