TightURL

TightURL Git Source Tree

Root/bad-behavior/bad-behavior/google.inc.php

1<?php if (!defined('BB2_CORE')) die('I said no cheating!');
2
3// Analyze user agents claiming to be Googlebot
4
5function bb2_google($package)
6{
7    if (match_cidr($package['ip'], "66.249.64.0/19") === FALSE && match_cidr($package['ip'], "64.233.160.0/19") === FALSE && match_cidr($package['ip'], "72.14.192.0/18") === FALSE) {
8        return "f1182195";
9    }
10    return false;
11}
12
13?>
14

Archive Download this file

Branches