function trackback_blackhole_init in Spam 5
Immediately drop all attempts to post or view trackbacks. The idea is to minimize the overhead associated with trackback spam attacks. With this module, anyone accessing /trackback/* will simply see a blank page, consuming minimal resources.
If you use the trackback module, then you do not want to also enable this module (tracbacks will silently stop working).
File
- trackback_blackhole/
trackback_blackhole.module, line 68
Code
function trackback_blackhole_init() {
if (function_exists('arg')) {
if (arg(0) == 'trackback') {
exit(0);
}
}
else {
$arg = explode('/', $_GET['q']);
if ($arg[0] == 'trackback') {
exit(0);
}
}
}