How to allow access to Joomla folders only from your static IP address
Restricting access to the Joomla files and allowing access only from your own IP address is a very strong security measure against malicious users. A folder that you could lock is the one of the administrator.
For the purposes of this restriction you must own a static IP address. Then add the following lines of code in the .htaccess file of each folder you want to protect. If there is no such file in a folder you can create one and then add the code inside it.
Deny from all
Allow from IP_ADDRESS
The IP_ADDRESS field have to be replaced with your own IP adress from which you want to allow access. If you do not know your IP address you can find it on the IP.GR website here.