Block parsing of php in subfolder

This is a discussion on Block parsing of php in subfolder within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello I am hoping that this is the right place to ask this question, if not i am sorry. The ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2005
oetting
 
Posts: n/a
Default Block parsing of php in subfolder

Hello

I am hoping that this is the right place to ask this question, if not i
am sorry.

The title said it all, i want to block parsing in a subfolder ( and its
subs). I dont want to place a httacces fil in the folder.

The solution i have so far is a htaccess file in a padding folder above
the folder i want to block with this content:
<FilesMatch ".php$">
ForceType text/html
</FilesMatch>

This would have to be done with all extentions that are parsed.

This would work but php could be reactivated by putting an appropriate
htaccess file in the subfolder. And does not seem pretty.

Can this be done in a better way. Can complete phpblocking be done at
all?

Jacob Oettinger

 


Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:40 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0