|
-
Aug 28th, 2012, 02:21 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] htaccess problem
i have a directory on the path
http://site.com/dir
in this dir, i have few files that i do not want anyone to access directly by entering the URL in the browser.
like
http://site.com/dir/file.cer
http://site.com/dir/file.pem
http://site.com/conf.conf
something like these files.
i can not move these files behind the webroot due to some reasons.
So please help me what should i write in my htaccess to achieve this?
-
Aug 28th, 2012, 11:50 PM
#2
Re: htaccess problem
Code:
<Files "conf.conf">
Order Allow,Deny
Deny from All
</Files>
More: http://www.askapache.com/htaccess/us...-htaccess.html
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Aug 29th, 2012, 07:58 PM
#3
Thread Starter
Fanatic Member
Re: htaccess problem
thank you very much akhileshbc
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|