I have to add X-Forwarded-For (XFF) Header code in my Higher Study site under wp-config.php. But this procedure hesitates me. In this situation, can I use this plugin to solve the Origin Error?
]]>I just switched my WordPress site over to Google’s pagespeed service. This broke Akismet. Searching for ways to fix the problem I found information that I needed the real IP plugin or proxy real IP plugin to fix it. I’ve tried both of these without success. Any ideas what to do?
The site doesn’t show a problem that I am aware of. I just have spam piling up in my comments.
]]>Seems that a similar server misconfiguration also fails to set HTTP_HOST
in the correct way, so if somebody on such a server moves a blog fom https://example.com/
to https://blog.example.com/
it will end up hanging in an endless redirection loop as HTTP_HOST
is still set as example.com
The plugin solves the IP issue, but not the hostname, maybe you could add this correction as an option (default disabled, enable via filter) in a future update or as own plugin. At the moment I use this added to your proxy-real-ip.php
and it corrects the above issue:
if ( ! empty( $_SERVER['HTTP_X_FORWARDED_HOST'] ) ) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
Note: The Plugin URI: wordpressforedu.com
seems to lead to nowhere, it should maybe lead here or to a page which also leads here.