The definitive guide to form-based website authentication [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Closed 5 years ago. The community reviewed whether to reopen this question 5 months ago and left it closed: Original close reason(s) were not resolved This question’s answers are a community effort. Edit existing answers to improve this post. It is … Read more

Best way to eliminate xmlrpc.php?

What is a best way to eliminate xmlrpc.php file from WordPress when you don’t need it? 8 Since WordPress 3.5 this option (XML-RPC) is enabled by default, and the ability to turn it off from WordPress dashboard is gone. Add this code snippet for use in functions.php: // Disable use XML-RPC add_filter( ‘xmlrpc_enabled’, ‘__return_false’ ); … Read more

Can I Prevent Enumeration of Usernames?

Can I prevent enumeration of usernames on my wordpress site? I can see users at the moment using the WPScan tool. 9 A simple solution I use in a .htaccess: RewriteCond %{REQUEST_URI} !^/wp-admin [NC] RewriteCond %{QUERY_STRING} author=\d RewriteRule ^ – [L,R=403] It is similar to @jptsetme’s answer, but it works even when the query string … Read more

WordPress 4.7.1 REST API still exposing users

I have upgraded my WordPress to 4.7.1, and after that I’ve tried to enumerate users through REST API, which should be fixed, but I was able to retrieve users. https://mywebsite.com/wp-json/wp/v2/users Output: [{“id”:1,”name”:”admin”,”url”:””,”description”:””,”link”:”https:\/\/mywebsite\/author\/admin\/”,”slug”:”admin”,”avatar_urls”:{“24”: … Changelog from latest version: The REST API exposed user data for all users who had authored a post of a public post … Read more