[quickhack] add simple anti-bot thingie: noone users that User-Agent anymore, but some old xrumer

This commit is contained in:
Aleksei Miheev
2014-01-05 12:23:16 +00:00
parent 041e696e3b
commit 46a6697dc8

View File

@@ -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);