Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

including htaccess protected file 1

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR

Hi guys,

I have a "secret" directory where the magic of the site is stored. Let's call it "dir_system".

Usually, I would simply place this directory outside the home directory of that it isn't acccessable from a browser.

But there are many hosts who make it impossible to do so.
You can store your files only in the home directory.

So, in such cases, how do I protect dir_system?
If I "htaccess" it, will the public side of the site be able to access the protected content via include() ?

Thanks for the help :)

 
The include() function operates on the local filesystem - it doesn't go through the web server. Therefore it is unaffected by any htaccess rules you might set up.
 
All I wanted to know in one single and concise line of well written text :) Thanks !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top