|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 70%||Total: 338 ||All time: 7,027 This week: 225|
This class can check if an access is from Google checking its IP.
It takes a given IP address and verifies if it is from Google Bot.
The class determines the IP address host name and compares with google.com or googlebot.com.
|Google is the most popular search engine. Being well ranked on Google is important for many sites to get nice organic traffic.
Many sites try to serve content for Google crawler bots as fast as possible, so that increases the chances of the sites pages to rank well.
In theory it is easy to detect when the Google bot is accessing a Web page. It is usually a matter of detecting the user agent string sent with requests from the Google bot crawler.
However, there are crawlers and malicious bots that pretend to be the real Google bot faking its user agent string.
This class provides a more robust way to detect whether a request is coming from Google bot or not.
It just gets the HTTP client IP address and resolves its host name to verify if it really has one of the known Google bot domains.
composer require kalmargabor/crawler-check
$crawlerCheck = new \Kalmargabor\CrawlerCheck\CrawlerCheck();
$ipToCheck = 'ip.address.ip.address';
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.