This plugin will hide author’s archive.
If your don’t need author parameter, this plugin may enhance your site’s security from bot inspection.
?author=1
redirection to /author/admin
author=1
or author_name=admin
list_users
or edit_others_posts
. This capability is filterable./** * Filter capabilities to see author list. * * @param string[] $caps List of capabilities. */ add_filter( 'hide_author_archive_rest_query_capability', function( $caps ) { $caps[] = 'read'; return $caps; } );