You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to block clients based on bad behavior using their real IP addresses. I enabled USE_REAL_IP in BunkerWeb and configured the real IP header to use the X-Forwarded-For value. However, BunkerWeb still bans the IP address of the CDN instead of the actual client's IP.
I checked the requests coming from the CDN, and I can confirm that the real client IP is present in the X-Forwarded-For header.
How to reproduce?
Deploy BunkerWeb behind a CDN.
Enable USE_REAL_IP in the BunkerWeb configuration.
Set the real IP source to X-Forwarded-For.
Trigger a ban condition (e.g., repeated failed requests).
Observe that the banned IP is the CDN's IP, not the client's IP.
Configuration file(s) (yaml or .env)
Relevant log output
BunkerWeb version
1.5.9
What integration are you using?
Linux
Linux distribution (if applicable)
Debian 12
Removed private data
I have removed all private data from the configuration file and the logs
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
What happened?
I want to block clients based on bad behavior using their real IP addresses. I enabled USE_REAL_IP in BunkerWeb and configured the real IP header to use the X-Forwarded-For value. However, BunkerWeb still bans the IP address of the CDN instead of the actual client's IP.
I checked the requests coming from the CDN, and I can confirm that the real client IP is present in the X-Forwarded-For header.
How to reproduce?
Deploy BunkerWeb behind a CDN.
Enable USE_REAL_IP in the BunkerWeb configuration.
Set the real IP source to X-Forwarded-For.
Trigger a ban condition (e.g., repeated failed requests).
Observe that the banned IP is the CDN's IP, not the client's IP.
Configuration file(s) (yaml or .env)
Relevant log output
BunkerWeb version
1.5.9
What integration are you using?
Linux
Linux distribution (if applicable)
Debian 12
Removed private data
Code of Conduct
The text was updated successfully, but these errors were encountered: