PDA

View Full Version : htaccess files to keep unauthorized people out of your admin


digital
01-22-2005, 12:56 AM
Keep your files secure and private.

In your admin or includes folder for your billing or other similar programs you can upload a file named

.htaccess

chmod it to 644

its just a plain txt file but once uploaded just rename it to .htaccess

Inside it put

<Limit GET POST>
order deny,allow
deny from all
allow from youripaddresshere
allow from yourfriendsipaddresshere
</Limit>



If you lock yourself out of your site just ftp and remove the file, if you can't do that submit a support ticket providing

username
domain name
path to file