[quickhack] add simple anti-bot thingie: noone users that User-Agent anymore, but some old xrumer
This commit is contained in:
@@ -34,6 +34,11 @@
|
||||
header("Preved: Krosavcheg!");
|
||||
$forum_version = 'SMF 1.0.8';
|
||||
|
||||
# some ugly anti-bot shit:
|
||||
if ($_SERVER['HTTP_USER_AGENT'] == "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;)") {
|
||||
header("Location: http://natribu.org"); die;
|
||||
}
|
||||
|
||||
// Get everything started up...
|
||||
define('SMF', 1);
|
||||
@set_magic_quotes_runtime(0);
|
||||
|
||||
Reference in New Issue
Block a user