Cloudflare Show Real IP Address on CentOS Plesk Server

Cloudflare is a popular Content Delivery Network (CDN) that can greatly improve website performance and security. When using Cloudflare CDN, the server will report Cloudflare server IP as the visitor IP address. This is because when a visitor visit your website, they are visiting cloudflare server. Cloudflare server will fetch web page from your server, serve it to the visitor. So all access to your server is coming from Cloudflare server, not the real visitor. Cloudflare forward real visitor IP addresses in an HTTP Header “CF-Connecting-IP”. To make Apache show real visitor IP addresses, you can use the Apache module remoteip.

Enable Apache module remoteip in Plesk

To Enable remoteip module in Plesk login to Plesk as user admin or root. Go to

Plesk Apache Settings

Under “General Settings”, click on “Apache Web Server”

On the next page, you will see all available Apache modules. To activate remoteip module, select the checkbox left side of remoteip and click the “OK” button.

Configure remoteip module

Create file

In the file, Add

Save and exit the file. Restart Apache web server.

Now Apache will see the real IP address of visitors coming from Cloudflare CDN.

Back to Plesk

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *