projects
/
web/konrad/smoke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f6230fd
)
nefarious bot countermeasure
author
Konrad Rosenbaum
<konrad@silmor.de>
Sat, 17 Mar 2012 15:14:39 +0000 (16:14 +0100)
committer
Konrad Rosenbaum
<konrad@silmor.de>
Sat, 17 Mar 2012 15:14:39 +0000 (16:14 +0100)
www/index.php
patch
|
blob
|
history
diff --git
a/www/index.php
b/www/index.php
index
5a76b70
..
2b020b3
100644
(file)
--- a/
www/index.php
+++ b/
www/index.php
@@
-142,5
+142,8
@@
try{
header("Content-Type: text/html; charset=utf-8");
print($page);
+//prevent potentially attacking bots from successfully injecting
+// code below here (some bots add harmful code to index.php)
+exit(0);
?>
\ No newline at end of file