Forums
Home / Plugin: Redirection / IP Anonymization
(@v4falkner)
6 years, 5 months ago
Hi, I guess, in my Country it’s not allowed to save the visitors IPs. Is there any option or workarround to anonymize or to prevent saving the IPs?
(@johnny5)
The only way is to use the WordPress filter redirection_request_ip and return whatever IP you want to use. This can be added to a custom plugin or somewhere on your site:
redirection_request_ip
add_filter( 'redirection_request_ip', function( $ip ) { return ''; } );
Thanks a lot! Gonna try this 🙂