|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
.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 |
|
#2
|
|||
|
|||
|
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). |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > .htaccess and includes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|