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's gravatar image

Boozezela
13
accept rate: 0%

edited 29 Jul '12, 09:31


Hi,

Here is how you can do this:

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

answered 29 Jul '12, 09:41

todork's gravatar image

todork
1.1k4
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 Boozezela's gravatar image
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

Tags:

×184
×24
×17

Asked: 29 Jul '12, 09:28

Seen: 1,283 times

Last updated: 29 Jul '12, 10:03

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited