SMF Development > Bug Reports

IP ban triggers on other IP's

(1/2) > >>

I am running SMF 2.0.2 and have added a single IP ban for "220.250.58.*"

This seems to work.  However, looking at the ban log other IP's are banned as well:

--- Code: --- Today at 08:19:16 AM Today at 08:19:06 AM Today at 08:19:02 AM Today at 07:48:52 AM Today at 06:42:23 AM Today at 06:04:12 AM Today at 06:04:10 AM Today at 06:01:54 AM Today at 06:01:32 AM Today at 06:01:07 AM Today at 05:02:02 AM Today at 05:02:00 AM Today at 12:55:29 AM Today at 12:54:34 AM Today at 12:54:32 AM Today at 12:44:37 AM
--- End code ---

Why are these other IP's triggering this ban?

TIA for any insight into this.  I don't want to be banning other people.

- Phil

Do you have any mod installed? Any anti-spam mod?
Obvious question: are you sure you don't have any other trigger in any other ban?

I have no mods installed.

No other triggers are set.  This is my first ban and I only entered this single IP.

If it helps, here is one of the log entries:

--- Code: --- Guest   
  Today at 08:19:16 AM
 Type of error: User Guest, you are banned from using this forum!
This ban is not set to expire.
--- End code ---

And here is the ban entry:

--- Code: ---Banned entity Hits Actions
IP: 220.250.58.* 48 Modify
[Add ban trigger]
--- End code ---

Edit: For now I have changed this ban to trigger on the individual IP's, and  We'll see how this goes.

The ban check is performed on both: $_SERVER['REMOTE_ADDR'] and $_SERVER['BAN_CHECK_IP'] (that can be $_SERVER['REMOTE_ADDR'] or $_SERVER['HTTP_CLIENT_IP'] or something slightly different.

It may be that the user has the second one set to an IP included in the range of banned IPs, wihle the first one (REMOTE_ADDR) set to for example.

Thanks.  This hidden IP could definitely explain the behaviour that I am seeing.

I'm happy as long as you think that I'm not banning good IP's.

Physically, what is the difference between the REMOTE_ADDR and the HTTP_CLIENT_IP?

- Phil


[0] Message Index

[#] Next page

Go to full version