Categories
Backup/Restore
4
Billing & Accounts
7
cPanel - Control Panel
77
Databases
22
DNS - Nameserver
6
Domain Management
14
Email
100
FTP Questions
42
Installing a Control Panel
6
Others
3
Pre-sales Questions
9
Scripts & Applications
106
Security
18
SiteWorx (Control Panel)
60
SolusVM
19
SSL
5
Troubleshooting
4
Categories
Tag Cloud
How to restrict directory access by IP address? Print
- 0
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 /wp-admin/.htaccess and you should put this code in, and not forget to replace the allowed IP address with your IP address.
order deny,allow
deny from all
allow from YOUR-IP-ADDRESS-HERE
(Replace "Your-IP-Address-Here" text with your IP Address)
You can test this by accessing your /wp-admin IP address from another IP address which is not allowed by your .htaccess file.
Was this answer helpful?
Related Articles
Guide to .htaccess
http://httpd.apache.org/docs/2.0/howto/htaccess.html
Turning off directory listings
You can easily manage which directories are indexed (viewable) by using the "Index Manager" tool...
How do I block IP Addresses?
In your CPanel account - go to "Site Management" and then select "Ip Deny Manager"Another method...
Password protecting a directory
You can easily password protect a directory using the directory password tool in your account...
Joomla Security Links
A few links we suggest for help with securing your Joomla...