anantshri/wp-security/master/htaccess/disable_ref_signup.htaccess
## Registration is disabled so...
## deny access to wp-signup.php and wp-register.php
## Ref : http://journalxtra.com/websiteadvice/wordpress-security-hardening-htaccess-rules/
RewriteCond %{REQUEST_URI} wp-signup.php [NC,OR]
RewriteCond %{QUERY_STRING} wp-signup.php [NC,OR]
RewriteCond %{THE_REQUEST} wp-signup.php [NC,OR]
RewriteCond %{REQUEST_URI} wp-register.php [NC,OR]
RewriteCond %{QUERY_STRING} wp-register.php [NC,OR]
RewriteCond %{THE_REQUEST} wp-register.php [NC]
RewriteRule .* - [F,NS,L]
On Github License
Files
Download PDF of Htaccess file