phpBB and Cloudflare

Hello!! sorry my English.

This is my website access log to my phpbb forum:

A lot of accesses to the same webpages but with different IPs of cloudflare (and different sid parameter) I don’t know what to do with this!! I have thousands and thousands of unnecessary hits.

Thank you

That’s because your site is behind a Cloudflare proxy and isn’t restoring Visitor IP addresses.

Thanks so much!

For those who have remoteip module the solution is this:

but if you have CentOS you have to search remoteip.conf on:
/etc/httpd/conf.d/remoteip.conf

and add

RemoteIPHeader CF-Connecting-IP

RemoteIPTrustedProxy 173.245.48.0/20

RemoteIPTrustedProxy 103.21.244.0/22

RemoteIPTrustedProxy 103.22.200.0/22

RemoteIPTrustedProxy 103.31.4.0/22

RemoteIPTrustedProxy 141.101.64.0/18

RemoteIPTrustedProxy 108.162.192.0/18

RemoteIPTrustedProxy 190.93.240.0/20

RemoteIPTrustedProxy 188.114.96.0/20

RemoteIPTrustedProxy 197.234.240.0/22

RemoteIPTrustedProxy 198.41.128.0/17

RemoteIPTrustedProxy 162.158.0.0/15

RemoteIPTrustedProxy 104.16.0.0/12

RemoteIPTrustedProxy 172.64.0.0/13

RemoteIPTrustedProxy 131.0.72.0/22

RemoteIPTrustedProxy 2400:cb00::/32

RemoteIPTrustedProxy 2606:4700::/32

RemoteIPTrustedProxy 2803:f800::/32

RemoteIPTrustedProxy 2405:b500::/32

RemoteIPTrustedProxy 2405:8100::/32

RemoteIPTrustedProxy 2a06:98c0::/29

RemoteIPTrustedProxy 2c0f:f248::/32

and restart apache

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.