403 is more appropriate
This commit is contained in:
parent
662c5e8778
commit
8af44574fd
1 changed files with 1 additions and 1 deletions
|
@ -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 <b>$ip</b> has been banned until <b>$date</b> by <b>{$admin->name}</b> because of <b>$reason</b>\n";
|
||||
print "<p>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 <a href='http://whatismyipaddress.com/dynamic-static'>http://whatismyipaddress.com/dynamic-static</a> for more information.\n";
|
||||
|
||||
|
|
Reference in a new issue