How to LOCK Your Admin Log Ins (TO YOU ONLY!)
The .htaccess file can be an extremely useful and powerful tool when developing a website. We all know that keeping your private or sensitive files and parts of the server safe is a high priority thing, especially when developing. So today i am going to show you how to limit access to your Admin Log In pages by ip addresses, which can be applied to pretty much any page or directory on a server.
First thing we need to do is open up our .htaccess file. Remember that you need the .htaccess file in the directory you want to control.
Second thing that you need to do is find out what ip addresses that you want to have access to the pages. Write them down for reference. If you do not know your ip address or how to find it visit this site http://www.whatismyip.com/
Now that we have everything open and you have the main parts of what you need. Here is what i want you to paste in your fresh htaccess file.
<limit GET>
order deny,allow
deny from all
allow from 111.111.1.11
</limit>
111.111.1.11 is your IP address. Just replace that and you will be good to go. If you want to add more than one ip address, i.e. work and home. Just press enter after your IP address and type: allow from 111.111.1.12. Where that would be the second IP address and so on.
This is an AWESOME technique to keep pesky people out of the important parts of your website. Also DO NOT FORGET that you need the htaccess file to be in the directory you want to do this to.
If you have anything to add or another technique feel free to share
!
Related posts:
CHECK




