This is a simple way to block anyone from crawling your Website.
This script will block any crawler or bot (except Google and Bing for SEO Reasons).
The script consider that a real visitor cannot visit your website 500 times within one hour, only bots can do that.
The script should be included at the head of your script/page.
<?php
include("anticrawler.php");
// Your content here..
?>
- We all hate that content from our sites is illegally copied.
- Parsers behind proxies or CloudFlare are detected, the script extract user's real IP.
- Your SEO will be not impacted, Google and Bing bots are whitelisted.
- Each block, you (contact@yourdomain.com) will be notified by email immediately,
By default, max calls are defined to 500 (line 8) but you can change it
If you have any question or you want to contribute, please make a Pull Request, thank you.