ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Comment IPs incorrect

July 17, 2009 4:57pm

Subscribe [2]
  • #1 / Jul 17, 2009 4:57pm

    Mightybytes

    4 posts

    Hi,

    We’ve been getting a lot of comment spam on our blog lately, and so my first course of action was to block the offending IPs in the Blacklist module. However, I noticed that the comment spam is (according to EE) coming from the same IP as legitimate comments. I did some digging around and discovered that this IP was actually the IP of our web host (specifically, the server that our website lives on).

    It seems that any comment made to our blog is reported by EE as coming from this one particular IP, when in fact they’re not. I’ve tested this out from multiple locations, and sure enough, every comment is showing the same IP. This renders the Blacklist module useless.

    I’ve searched around the forums and can’t find any solution to this. I’ve built many sites in EE (including some on this same host) and I’ve never encountered this problem before. Is there any reason why EE wouldn’t be able to report the correct IPs for comments? (It’s able to show the correct IPs in the Control Panel Log, why not in Comment lists?)

    Thanks for your help.

  • #2 / Jul 17, 2009 5:55pm

    Sue Crocker

    26054 posts

    Which version/build of ExpressionEngine are you using? You can find that out at the bottom of any control panel page.

    The current version is 1.6.7 and the build is 20090515.

  • #3 / Jul 17, 2009 6:07pm

    Mightybytes

    4 posts

    I’m using version 1.6.7, build 20090211.

  • #4 / Jul 18, 2009 5:28am

    Ingmar

    29245 posts

    It sounds like your site may be behind a reverse proxy. Try adding this to your config.php

    $conf['proxy_ips'] = '0.0.0.0';

    Be sure to replace 0.0.0.0 with the IP address of your host. See if that changes anything.

  • #5 / Jul 21, 2009 3:13pm

    Mightybytes

    4 posts

    Looks like that did the trick, thank you!

  • #6 / Jul 21, 2009 3:17pm

    Ingmar

    29245 posts

    Very glad to hear it 😊 Please post again if you need additional help.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases