Skip to content
Browse files

Include user's IP address in the you-are-banned message, so people

who email us can be more informative.
  • Loading branch information...
1 parent 765d3b3 commit a8eb7bf89ae83eb6b49f0c93c3be8f57e37d4651 @jamiemccarthy jamiemccarthy committed Jan 27, 2002
Showing with 10 additions and 6 deletions.
  1. +10 −6 Slash/Apache/Banlist/Banlist.pm
View
16 Slash/Apache/Banlist/Banlist.pm
@@ -22,8 +22,9 @@ sub handler {
# Ok, this will make it so that we can reliably use Apache->request
Apache->request($r);
- my $cur_ipid = md5_hex($r->connection->remote_ip);
- my $cur_subnet = $r->connection->remote_ip;
+ my $cur_ip = $r->connection->remote_ip;
+ my $cur_ipid = md5_hex($cur_ip);
+ my $cur_subnet = $cur_ip;
$cur_subnet =~ s/^(\d+\.\d+\.\d+)\.\d+$/$1.0/;
$cur_subnet = md5_hex($cur_subnet);
@@ -39,10 +40,13 @@ sub handler {
<BODY BGCOLOR="pink">
<H1>Either your network or ip address has been banned
from this site</H1><BR>
-due to script flooding that originated
-from your network or ip address. If you feel that this
-is unwarrented, feel free to include your ip address
-in an email, and we will examine why there is a ban.
+due to script flooding that originated
+from your network or ip address. If you feel that this
+is unwarranted, feel free to include your IP address
+(<b>$cur_ip</b>) in an email, and we will examine why
+there is a ban. If you fail to include the IP address,
+your message will be deleted and ignored. I mean come
+on, we're good, we're not psychic.
</BODY>
</HTML>
EOT

0 comments on commit a8eb7bf

Please sign in to comment.
Something went wrong with that request. Please try again.