Results 1 to 5 of 5

Thread: Show real IP in stead of CloudFlare in Apache logs

  1. #1
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    85

    Show real IP in stead of CloudFlare in Apache logs

    Hello,

    I use Cloudflare on a few on my domains. But in the access- and error_logs i will see only the IP-adresses of the cloudflare proxy, and not the real ip-adresses of the visitors.

    I have been searching on Google for a while, but what is the best way to see the real IP addresses in the logs with Apache 2.4?

    I've heard about mod_cloudflare, but this is now deprecated.
    What is the best solution?

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,857
    Alex Grebenschikov

    - You can hire me on www.poralix.com to work on your server
    - Follow and like @Poralix on Facebook

  3. #3
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    85
    Quote Originally Posted by zEitEr View Post
    Yes, i've seen that page.
    And what is the best solution for CentOS7?

    Must i run this?
    Code:
    apxs -a -i -c mod_cloudflare.c
    service httpd restart && httpd -M|grep cloudflare
    Last edited by Aar; 03-16-2019 at 07:33 AM.

  4. #4
    Join Date
    Feb 2008
    Location
    Québec, Canada
    Posts
    168
    - Web Alternative
    - DirectAdmin Hosting - DirectAdmin Reseller Hosting - Managed VPS

  5. #5
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    85
    Quote Originally Posted by webaltern View Post
    Ah, thanks.
    As i see on the date it is still supported.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •