I want to be able to ban all IPs from accessing a specific directorie APART from the IP addresses that I specifiy. So basically only I can see the directory I specify. Im pretty sure there must be a way of doing this via CPanel or something. Thanks.
create a .htaccess file in the subdirectory and add this to it. where xx.xx.xx.xx = the IP address to allow in. You can also password protect the directory in cpanel - it requires a userid / password for someone to access it.
So if this is all i have in my htaccess file should it be ok. deny from all allow from xx.xx.xxx.xxx allow from xxx.xxx.xxx.xxx Code (markup): Thanks. EDIT: or do I need somehting like order deny,allow ?