How to protect wordpress from hackers

There are many ways you can protect your WordPress blog from hackers, but here is one simple and easy way that you can implement in less than one minute. This approach will block wp-admin access to all ip addresses except the one that you specifically allow in the htaccess file:

order deny,allow
allow from # This is your static IP
allow from # This is your static IP
deny from all

Add this code to your htaccess file in the wp-admin folder.
Replace with your ip address.
You can add as many ip addresses as you want.

How to Find Your IP Address

To find your ip address, just do a Google search for the following term: “what is my ip address”. You will see your ip address.

This simple technique should prove to be effective in preventing outside hackers from accessing your WordPress blog.

Leave a Reply