LoginDir.php is a stand-alone script that sets a username and password on a directory.
It uses .htaccess and .htpasswd. Server-side Http authentication.
Do not use it on the WordPress /wp-admin/ directory because it will also block all front-end ajax calls.
It can be downloaded on GitHub.
Leave a Reply