Extension name: Cloudflare Real IP
Author: Stoker 4.0
Extension description: Cloudflare Real IP securely unmasks real visitor IPs behind Cloudflare by fetching and caching official Cloudflare IPv4/IPv6 ranges(24 hours), validating each request's origin through CIDR matching, and only trusting CF-Connecting-IP headers from verified Cloudflare servers. Logs spoofing attempts for security monitoring.
If fetching fails, it will be in the phpBB error log and the extension will use the hardcoded IP range instead.
If fetching succeed, it will be in the admin log.
If you have a load balancer, reverse proxy, or CDN sitting between Cloudflare and your phpBB server, the extension might not detect Cloudflare properly. Adding your proxy's IP to the trusted list fixes this.
Signs you need it:
- Extension is enabled but IPs still show as Cloudflare IPs instead of real user IPs
- You have nginx, HAProxy, or another proxy in front of phpBB
For troubleshooting or other reasons you can add your IP to the trusted IP list. Its done manual in the main_listener:Code: protected $trusted_ips = [// '1.2.3.4', // Example IPv4// '2001:db8::1', // Example IPv6];Extension version: 1.0.3
Tested on phpBB version: 3.3.15
Download file: unmaskcloudflare_1.0.3.zip
File size: 10.93 KiB
Extension overview page: View
Except where otherwise noted, the phpBB Team is not responsible nor required to provide support for this extension. By installing this extension, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.
[url=https://www.phpbb.com/customise/db/exte ... ip/support]-->Extension support
https://www.phpbb.com/community/viewtop ... #p16124329
