TightURL

TightURL Git Source Tree

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

1<?php if (!defined('BB2_CORE')) die('I said no cheating!');
2
3// Specialized screening for trackbacks
4function bb2_trackback($package)
5{
6    // Web browsers don't send trackbacks
7    if ($package['is_browser']) {
8        return 'f0dcb3fd';
9    }
10
11    // Proxy servers don't send trackbacks either
12    if (array_key_exists('Via', $package['headers_mixed']) || array_key_exists('Max-Forwards', $package['headers_mixed']) || array_key_exists('X-Forwarded-For', $package['headers_mixed']) || array_key_exists('Client-Ip', $package['headers_mixed'])) {
13        return 'd60b87c7';
14    }
15    return false;
16}
17
18?>
19

Archive Download this file

Branches