From 46a6697dc8af5eb1ca1e552fd50bacd85cbdd3e4 Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 12:23:16 +0000 Subject: [PATCH] [quickhack] add simple anti-bot thingie: noone users that User-Agent anymore, but some old xrumer --- index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.php b/index.php index db78ea1..d1eb89e 100644 --- a/index.php +++ b/index.php @@ -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);