Jump to content
TNG Community

Stop googlebot


bayanne

Recommended Posts

I just had a comcast IP come cruising through my site, I think I know whats going on: Distributed Search Engine projects.

I noticed in the logs the comcast IP was using a MJ12bot/v1.1.2 agent.

Which is written by http://www.majestic12.co.uk/

So folks run this on their computers, gather links for the search engine and gain ranking.

All in all, pretty harmless.

You can block it by putting:

User-Agent: MJ12bot

Disallow: /

In your robots.txt file.

Rush

Link to comment
Share on other sites

  • 1 month later...

Adding more and more IP address blocks via your server's control panel (to the .htaccess file) will eventually slow it down as it has more rules to search through.

Rogue bots also ignore the robots.txt file, as I've had them come through web sites that I have.

If you want to display a visitor's IP address to them, this bit of PHP code will do it.

<?php echo (getenv("REMOTE_ADDR")); ?>

If embedding into a php file, remove the (<?php) and ending (?>).

I've found that a lot of bots and automated scanning is related to looking for vulnerabilities in web sites.

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...