From 8af44574fdd4538a116b33302c91d1e8a60e6eef Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 15 Feb 2012 08:51:13 +0000 Subject: [PATCH] 403 is more appropriate --- contrib/ipban/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ipban/main.php b/contrib/ipban/main.php index 0e0fa295..415e7d1b 100644 --- a/contrib/ipban/main.php +++ b/contrib/ipban/main.php @@ -195,7 +195,7 @@ class IPBan extends Extension { $reason = $row[$prefix.'reason']; $admin = User::by_id($row[$prefix.'banner_id']); $date = date("Y-m-d", $row[$prefix.'end_timestamp']); - header("Cache-control: no-cache, max-age=0"); + header("HTTP/1.0 403 Forbidden"); print "IP $ip has been banned until $date by {$admin->name} because of $reason\n"; print "

If you couldn't possibly be guilty of what you're banned for, the person we banned probably had a dynamic IP address and so do you. See http://whatismyipaddress.com/dynamic-static for more information.\n";