Disable Author Archive Pages
301-redirects all author archive URLs to the homepage, effectively disabling them to reduce user enumeration exposure.
PHPby SnipCraft
php
<?php
add_action( 'template_redirect', 'scseed_disable_author_archives' );
function scseed_disable_author_archives() {
if ( is_author() ) {
wp_redirect( home_url( '/' ), 301 );
exit;
}
}#authors#redirects#security#seo