Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2009, 11:54 AM
tlwwolfseye's Avatar
tlwwolfseye tlwwolfseye is offline
 
Join Date: Dec 2008
Location: Germany
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to get rid of the Majestics MJ12bot ?

On one of the Sites I run i have lately a huge amount of visits of the "Majestics MJ12bot". Any idea how to get rid of it ? I think I already banned a few IP Ranges where he was in but he seems to come back with other IP?s anytime.

As you can see, he is much more there than any other Bot. And though I don?t know if that Bot is bad really, it just concerns me a little bit.

http://www.abload.de/img/damn-bot8e33.jpg

I have a .htaccess File which is filled with a lot of banned IP Ranges already. Anyway I can get rid of the bot with the .htaccess File as well ? I just don?t know which IP/IP Ranges that Bot uses in total.

Anyone experience with that Bot ?

UPDATE:

For some reasons I cant get the image to show it in here as its supposed to be, so here is the direct link to the Screenshot.
Reply With Quote
  #2  
Old 05-29-2009, 11:59 AM
Angel-Wings's Avatar
Angel-Wings Angel-Wings is offline
 
Join Date: Sep 2007
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The image is quite tiny

Well, do you've access to the Webserver that you can install things like mod_security ? Usually blocking IP ranges won't help much if the bot is always coming back and it might end you're blocking legimate members from accessing your board.

Dunno if the bot has a special useragent that can be blocked or if the made requests won't differ - you could block based on these or maybe as a much better solution slow each reply down to a maximum like Teergrubing for spam mailservers.
Reply With Quote
  #3  
Old 05-29-2009, 12:10 PM
tlwwolfseye's Avatar
tlwwolfseye tlwwolfseye is offline
 
Join Date: Dec 2008
Location: Germany
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have access to the Webserver, its just a Webspace account. .htaccess is the best I can do. And yes I know, banning IP Ranges often hits also the wrong people, but then sometimes its better safe than sorry.

There is only so much one can do on a Webspace.
Reply With Quote
  #4  
Old 05-29-2009, 12:17 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

robots.txt 'nuff said..
Reply With Quote
  #5  
Old 05-29-2009, 12:22 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have a read up here buddy, http://www.majestic12.co.uk/projects...ch/mj12bot.php

The IP address is 88.38.211.149, so add that to your IP ban, it does not obey robots.txt and may overload websites.

If you see this fake bot from that IP, please report this abuse to: abusedesk@interbusiness.it and abuse@business.telecomitalia.it - this is their ISP who provides them with upstream connectivity and they were very responsive.

I think if such abuse continues they will cut them off for good.
:up:
Reply With Quote
  #6  
Old 05-29-2009, 12:23 PM
tlwwolfseye's Avatar
tlwwolfseye tlwwolfseye is offline
 
Join Date: Dec 2008
Location: Germany
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With a robots.txt i basically stop all the Bots that I put in it, from going through the site´s content, right ? Someone has a good up to date robots.txt with most of the bad search engines blocked, except maybe Google because I heard they don´t like when you do that. And I want at least Google do the Search stuff.
Reply With Quote
  #7  
Old 05-29-2009, 12:24 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At that point, use the referrer info in .htaccess. In fact, I'd most likely block all instances of majestic just to hammer the point home.

# deny majestic
SetEnvIfNoCase User-Agent "^MJ12" block
Reply With Quote
  #8  
Old 05-29-2009, 12:32 PM
tlwwolfseye's Avatar
tlwwolfseye tlwwolfseye is offline
 
Join Date: Dec 2008
Location: Germany
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Biker_GA View Post

# deny majestic
SetEnvIfNoCase User-Agent "^MJ12" block
As soon as I put that into my .htaccess File i get a "Internal Server Error 500".

This is, except from the actual IP Ranges I blocked (list would be too long ), how my .htaccess File looks.

Code:
php_value memory_limit 64M
php_value upload_max_filesize 50M
php_value max_execution_time 900

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://www.myotherdomain.com/hotlinkxutp.jpg [NC,R,L]

ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/403.html

<Files .htaccess>
order allow,deny
deny from all
</Files>
Links have been changed in this example but this is how the .htaccess File looks without the actual IP Bans.
Reply With Quote
  #9  
Old 05-29-2009, 12:38 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^MJ12
RewriteRule ^.* - [F,L]

Place that after your "allows".
Reply With Quote
  #10  
Old 05-29-2009, 12:40 PM
tlwwolfseye's Avatar
tlwwolfseye tlwwolfseye is offline
 
Join Date: Dec 2008
Location: Germany
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That other part of Rewrite Engine i have there is for protecting Images not being hotlinked on my Site. Can I use both those parts or does that cause problems ?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 01:06 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
  • Page Generation 0.04218 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete