latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

REMOTE_ADDR -vs- HTTP_X_FORWARDED_FOR

Home Forums Community Forum REMOTE_ADDR -vs- HTTP_X_FORWARDED_FOR

This topic contains 3 replies, has 2 voices. Last updated by  Raam Dev 4 years, 8 months ago.

Topic Author Topic
Posted: Thursday Apr 26th, 2012 at 4:19 pm #11988

We are using Rackspace Cloud Sites and running into the issue noted here:

http://www.primothemes.com/forums/viewtopic.php?t=6380&p=14618#p14618

Unfortunately, we do not have access to the php.ini file to fix as suggested.

We’ve tried adding this to the top of wp-config.php, reasoning that it will be loaded before s2 and correct the problem.

$_SERVER["REMOTE_ADDR"] == $_SERVER['HTTP_X_FORWARDED_FOR'];

We’ve also tried an mu-plugin with the code above wrapped in a function hooked to init – no dice?

Any ideas appreciated, this is causing problems with brute force protection obviously and confusing customers.

Thanks!

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Apr 26th, 2012 at 8:02 pm #12011
Raam Dev
Username: Raam
Staff Member

Hi Rurick,

You should try changing == to just =; the former is used to compare values, whereas the latter is used to assign values.

Posted: Tuesday May 1st, 2012 at 11:56 am #12280

Doh! Thanks for the reply Raam

Posted: Tuesday May 1st, 2012 at 2:41 pm #12304
Raam Dev
Username: Raam
Staff Member

Glad to help, Rurick! :)

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.