aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--en/index.php2
-rw-r--r--index.php13
-rw-r--r--redir.php16
3 files changed, 19 insertions, 12 deletions
diff --git a/en/index.php b/en/index.php
index a6ff50ec8..4f1b84742 100644
--- a/en/index.php
+++ b/en/index.php
@@ -2,6 +2,8 @@
/**
*/
+require '../redir.php';
+
define('HLANG', true);
require '../langs.php';
diff --git a/index.php b/index.php
index 38104d239..9f04e776b 100644
--- a/index.php
+++ b/index.php
@@ -3,18 +3,7 @@
*
*/
-// temporary poor fix for bad queries
-// if (isset($_GET['id']) && isset($_GET['msg'])) {
-if (false !== strpos($_SERVER['QUERY_STRING'], 'Tenemos')) {
- header('HTTP/1.1 503 Service Temporarily Unavailable');
- header('Status: 503 Service Temporarily Unavailable');
- header('Retry-After: 7200');
- /*
- header('HTTP/1.0 404 Not Found');
- header('Status: 404 Not Found');
- */
- die;
-}
+require 'redir.php';
require_once 'langs.inc.php';
diff --git a/redir.php b/redir.php
new file mode 100644
index 000000000..3dc2623fe
--- /dev/null
+++ b/redir.php
@@ -0,0 +1,16 @@
+<?php
+
+// temporary poor fix for bad queries
+// if (isset($_GET['id']) && isset($_GET['msg'])) {
+if (false !== strpos($_SERVER['QUERY_STRING'], 'Tenemos')
+ || false !== strpos($_SERVER['HTTP_REFERER'], 'blogdeklx1.blogspot.mx')
+) {
+ header('HTTP/1.1 503 Service Temporarily Unavailable');
+ header('Status: 503 Service Temporarily Unavailable');
+ header('Retry-After: 7200');
+ /*
+ header('HTTP/1.0 404 Not Found');
+ header('Status: 404 Not Found');
+ */
+ die;
+} \ No newline at end of file