Block Access To Wordpress WP-Login.php

Add the following lines to your htaccess file located within your domains root.


<Files wp-login.php>
   # set up rule order
   order deny,allow
   # default deny
   deny from all
   # Raid Host Office
   allow from YOUR IP GOES HERE
   errordocument 401 default
   errordocument 403 default
   errordocument 404 default
</Files>
  • 8 Users Found This Useful
Was this answer helpful?

Related Articles

What Is SSH?

SSH (Secure Shell) is a secure method for logging into a server remotely and giving the server...

How to request SSH Access

SSH access allows for a number of advanced functions and should only be requested by technically...

What are cron jobs?

Cron jobs are routines that execute a script on any given interval. For instance, you may have a...

What are error pages?

Error pages are the pages displayed when a user tries to access a location on your site and...

How do I configure a cron job?

Login to cPanel. Locate and click on the "Cron Jobs" icon under the "Advanced" category....