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?
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
Reset to default 4This line added to functions.php (ideally in a child theme, or a plugin) will remove it:
add_filter( 'x_redirect_by', '__return_false' );
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742361342a4429452.html
评论列表(0条)