Skip to content

This is a simple way to block anyone from crawling your Website.

License

Notifications You must be signed in to change notification settings

nejib1/PHPAntiCrawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHPAntiCrawler

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.

Usage

<?php
include("anticrawler.php");
// Your content here..
?>

Why the script is useful ?

  1. We all hate that content from our sites is illegally copied.
  2. Parsers behind proxies or CloudFlare are detected, the script extract user's real IP.
  3. Your SEO will be not impacted, Google and Bing bots are whitelisted.
  4. 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

Contributing

If you have any question or you want to contribute, please make a Pull Request, thank you.

About

This is a simple way to block anyone from crawling your Website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages