WebFaction
Community site: login faq

I would like to disable script execution from a directory where users are allowed to upload files.

I have already tried everything I knew in my .htaccess, without success:

SetHandler none
RemoveHandler .php
RemoveType .php
php_flag engine off (this bombs apache with HTTP 500).

Is there a way to do it?

Thank you.

asked 29 Jul '12, 09:28

Boozezela
123
accept rate: 0%

edited 29 Jul '12, 09:31


Hi,

Here is how you can do this:

<FilesMatch ".*">
SetHandler none
</FilesMatch>
permanent link

answered 29 Jul '12, 09:41

todork
1.2k5
accept rate: 34%

Wow, it worked (and it puzzles me how SetHandler alone has no effect at all). :)

Thank you.

(29 Jul '12, 10:02) Boozezela
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×33
×27

question asked: 29 Jul '12, 09:28

question was seen: 5,339 times

last updated: 29 Jul '12, 10:03

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM