Skip to content

Latest commit

 

History

History
 
 

robots.txt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Robots.txt Directives

The robots.txt file residing in this directory should be used in addition to using the Nginx Bad Bot Blocker.

There is good reason for this.

It is considered good practice to actually tell a bot whether it is allowed or denied access.

So as a webmaster or server operator it is the right and also responsible thing to tell any of our listed bad bots to go away first.

If a bot ignores robots.txt (which many do) it will then be blocked outright by the blocker, make no mistake about that.


Help Support This Project

Buy me Coffee


Not Using Nginx? See the Get the APACHE ULTIMATE BAD BOT BLOCKER


Optimized for Wordpress Sites

This robots.txt file is designed primarily for wordpress sites. This is revealed in the starting lines.

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

This means all user agents are ALLOWED to access all parts of the web sites by default

  • they are NOT allowed to crawl the Wordpress /wp-admin/ folder
  • they ARE allowed to access /wp-admin/admin-ajax.php

You can modify these beginning lines to your liking.

Then after the beginning lines we start explicitly telling bots to go away.

Example:

User-agent: 360Spider
Disallow:/
User-agent: 404checker
Disallow:/
.....
.....
.....
.....

Keeping your robots.txt updated

Check out the updaterobots.sh bash script for a simple updater for all your web sites.


Follow me on twitter @ubuntu101za

Follow @ubuntu101za


SOME OTHER AWESOME FREE PROJECTS


INTO PHOTOGRAPHY?

Come drop by and visit me at https://mitchellkrog.com or Follow @MitchellKrog


ACKNOWLEDGMENTS & CONTRIBUTORS:

Many Thanks to those contributing to this project.

Many parts of the generator scripts and code running behind this project have been adapted from snippets from hundreds of sources. In fact it is so hard to mention everyone but here are a few key people whose little snippets of code have helped me introduce new features all the time. Show them some love and check out some of their projects too.

If you believe your name should be here, drop me a line.


Writing Code like this takes lots of time !!

Thousand of hours of programming and testing have gone into this project, show some love

Buy me Coffee


MIT License

Copyright (c) 2017 Mitchell Krog - [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.