This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Check if the user agent string is one of a crawler, spider, or bot. | |
* | |
* @return bool | |
* TRUE if the user agent is a bot, FALSE if not. | |
*/ | |
function is_crawler() { | |
// User lowercase string for comparison. |