TightURL

TightURL Git Source Tree

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

1<?php if (!defined('BB2_CORE')) die('I said no cheating!');
2
3// Analyze user agents claiming to be msnbot
4
5function bb2_msnbot($package)
6{
7    if (match_cidr($package['ip'], "207.46.0.0/16") === FALSE && match_cidr($package['ip'], "65.52.0.0/14") === FALSE && match_cidr($package['ip'], "207.68.128.0/18") === FALSE && match_cidr($package['ip'], "207.68.192.0/20") === FALSE && match_cidr($package['ip'], "64.4.0.0/18") === FALSE) {
8        return "e4de0453";
9    }
10    return false;
11}
12
13?>
14

Archive Download this file

Branches