4

Is there a clean way to not have WordPress send the X-Redirect-By response header when redirects happen? I'd like to disable it in order not to expose information about our software stack. Something I can hook into functions.php perhaps?

1 Answer 1

4

This line added to functions.php (ideally in a child theme, or a plugin) will remove it:

add_filter( 'x_redirect_by', '__return_false' );
1
  • That totally works! Thanks Jacob.
    – Pieter
    Jun 10, 2020 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.