Skip to content

Commit

Permalink
add 'heritrix' (= crawler used by kansallisarkisto) to bot list
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanna Nygard committed Oct 30, 2017
1 parent 170e339 commit 49ecb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function add_debug_html_to_output( $debug_html ) {
*/

if (in_array('bot', $batcache->unique)) {
$bots = array('Googlebot','Bingbot','msnbot','Slurp','DuckDuckBot','YandexBot','Exabot','facebot','facebookexternalhit');
$bots = array('Googlebot','Bingbot','msnbot','Slurp','DuckDuckBot','YandexBot','Exabot','facebot','facebookexternalhit','heritrix');
if (isset($_SERVER['HTTP_USER_AGENT'])) {
foreach($bots as $bot) {
if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), strtolower($bot)) !== false) {
Expand Down

0 comments on commit 49ecb51

Please sign in to comment.