Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 1st, 2001, 12:56 PM
artybug artybug is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 23 artybug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 37 sec
Reputation Power: 0
.htaccess and includes

I'm looking for some information on .htaccess. I don't know much about them but what I'd like to do is protect my include directories from being viewed by users. I know that you can use .htaccess files to control access on a directory basis.

Thank you

Reply With Quote
  #2  
Old June 1st, 2001, 09:19 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
FilesMatch approach might work with you have a particular extension for those files (i.e. .inc) -> http://httpd.apache.org/docs/mod/core.html#filesmatch

Example:

<FilesMatch "\.inc$">
Order deny, allow
Deny from All
</FilesMatch>

You can also use LocationMatch -> http://httpd.apache.org/docs/mod/co...l#locationmatch

Example:

<LocationMatch "^/include">
Order deny, allow
Deny from All
</LocationMatch>

Note, all these deny access on client side, like accessing it thru browser. include for SSI is done on server side. That said, it wouldn't deny your html page itself trying to include files (on the server side).

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > .htaccess and includes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway