Jump to content
TNG Community

Bot to block - Microsoft URL Control


Rush

Recommended Posts

This might be one throw into your 'ban' list:

Microsoft URL Control bot hit me up for over 2 gigs of bandwidth in one day...

This bot pretty much harvests email address, so blocking it isn't such a bad thing ;)

I use .htaccess take care of that business as it will likely ignore a robots.txt file.

On a side note, I also block libwww-perl, which cuts down on most of the URL hacks that are attempted.

-----------htaccess snippet----------------------------

SetEnvIfNoCase User-Agent "Microsoft URL Control" keep_out

SetEnvIfNoCase User-Agent "libwww-perl" keep_out

<Limit GET POST >

order allow,deny

allow from all

deny from env=keep_out

</Limit>

----------------------------------------------------------

You can also test against the changes you made by using this site

This will simulate any user agent to make sure its being blocked.

Rush

Link to comment
Share on other sites

Micheal Mathews

This might be one throw into your 'ban' list:

Microsoft URL Control bot hit me up for over 2 gigs of bandwidth in one day...

This bot pretty much harvests email address, so blocking it isn't such a bad thing ;)

I use .htaccess take care of that business as it will likely ignore a robots.txt file.

On a side note, I also block libwww-perl, which cuts down on most of the URL hacks that are attempted.

-----------htaccess snippet----------------------------

SetEnvIfNoCase User-Agent "Microsoft URL Control" keep_out

SetEnvIfNoCase User-Agent "libwww-perl" keep_out

<Limit GET POST >

order allow,deny

allow from all

deny from env=keep_out

</Limit>

----------------------------------------------------------

You can also test against the changes you made by using this site

This will simulate any user agent to make sure its being blocked.

Rush

Hello Rush -- thanks for the info on this. I'm having a tough time with some nasty ones as well.

I'm not trying to hijack your thread, but this is probably a good time to tell others about another nasty bot they might want to block -- the MJ bot version 1.08

This version of the MJ bot is actually a bad bot faking as the otherwise well behaved MJ version 1.2 bot.I caught this bot in my logs draining off about 1/2 gig of bandwidth and did go to the MJ site to find out what the heck they were all about. If anyone is finding this one, you might want to check out

http://www.majestic12.co.uk/projects/dsearch/mj12bot.php

where they tell you what is going on.

In the meantime, this is the recommended way to block the fake bot in htaccess:

SetEnvIfNoCase User-Agent "^MJ12bot(.*)1\.0\.8" bad_bot

<LIMIT GET PUT>

Order Allow,Deny

Allow from all

Deny from env=bad_bot

</LIMIT>

blocking i.p. is not going to work with this version of the bad MJ bot because they appear to have built quite a big botnet.

Thanks Rush.

MEM

Link to comment
Share on other sites

What you can do is fire up Notepad and save the file as: htaccess (no dot)

Upload the htaccess to your web root directory and rename it .htaccess

The file will control the folder it is in and all sub-folders. So if its in your web root directory, it will cover the entire site.

HTH,

Rush

Link to comment
Share on other sites

What you can do is fire up Notepad and save the file as: htaccess (no dot)

Upload the htaccess to your web root directory and rename it .htaccess

The file will control the folder it is in and all sub-folders. So if its in your web root directory, it will cover the entire site.

HTH,

Rush

Here's what I did:

SetEnvIfNoCase User-Agent "Microsoft URL Control" keep_out
SetEnvIfNoCase User-Agent "libwww-perl" keep_out
SetEnvIfNoCase User-Agent "^MJ12bot(.*)1\.0\.8" bad_bot

<Limit GET POST >
order allow,deny
allow from all
deny from env=keep_out
Deny from env=bad_bot
</Limit>

Does that work?

Link to comment
Share on other sites

Changed to:


SetEnvIfNoCase User-Agent "Microsoft URL Control" keep_out
SetEnvIfNoCase User-Agent "libwww-perl" keep_out
SetEnvIfNoCase User-Agent "^MJ12bot(.*)1\.0\.8" keep_out

<Limit GET POST >
order allow,deny
allow from all
deny from env=keep_out
</Limit>

Using the site Rush provided above, ^MJ12bot(.*)1\.0\.8, is still able to see my site. Any ideas?

This is a new realm to me. Thank you both for your help!

Nick

Link to comment
Share on other sites

I Found this Site that offered this code as being better for that bot:

SetEnvIfNoCase User-Agent "^MJ12bot(.*)1\.0\.8" stay_out

<Location />

Order Allow,Deny

Deny from env=stay_out

Allow from all

</Location>

I don't know if it's better or not, but this code worked for me. I also found: Site which has a good list of "bad bots" if you're interested.

Nick

Nevermind, that blocked everything from my site! The original code posted by Michael works, I used MJ12bot1.0.8 as the bot in the test and it works, but MJ12bot(.*)1\.0\.8 doesn't.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...