For example, if you have a WordPress blog installed on your main directory like example.com/wp-admin, you should create an .htaccess file in
order deny,allow
deny from all
allow from
(Replace "
You can test this by accessing your /wp-admin IP address from another IP address which is not allowed by your .htaccess file.