summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index bde1c6ee..58b6a860 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -588,4 +588,10 @@
// Link imageboard to your Google Analytics account to track users and provide marketing insights.
// $config['google_analytics'] = 'UA-xxxxxxx-yy';
+
+ if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
+ // You cannot request this file directly.
+ header('Location: ../', true, 302);
+ exit;
+ }
?> \ No newline at end of file