SolitudeDude
11-10-2008, 03:30 PM
Hi!
I have a couple of questions regarding .htaccess files. I have a .htaccess file running on my site (in the root directory) that has a list of banned IP Addresses to block from viewing the site. Aside from using it for that purpose, I also want to use it to disable hot linking and a couple of other things but I cannot have more than one .htaccess file in the same directory?
I was going to generate a code on Dynamic Drive to disable hot linking on my site so can I just add the code to my existing .htaccess file (the one with banned IPs)?
Last question is....how can I use a .htaccess file to block ALL access to a specific directory? I don't mean to make it password protected...I mean to where if anyone tries to visit that directory or any pages in it, they will get a 403 Forbidden page?
Thanks in advance!!
-Allen
I have a couple of questions regarding .htaccess files. I have a .htaccess file running on my site (in the root directory) that has a list of banned IP Addresses to block from viewing the site. Aside from using it for that purpose, I also want to use it to disable hot linking and a couple of other things but I cannot have more than one .htaccess file in the same directory?
I was going to generate a code on Dynamic Drive to disable hot linking on my site so can I just add the code to my existing .htaccess file (the one with banned IPs)?
Last question is....how can I use a .htaccess file to block ALL access to a specific directory? I don't mean to make it password protected...I mean to where if anyone tries to visit that directory or any pages in it, they will get a 403 Forbidden page?
Thanks in advance!!
-Allen