Log the real IP logging in Relevanssi

Log the real IP logging in Relevanssi.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'relevanssi_remote_addr', function( $ip ) {
  return $_SERVER['HTTP_X_FORWARDED_FOR'];
} );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.