login community 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:

1
2
3
4
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 Jul 29 '12 at 09:28

Boozezela's gravatar image

Boozezela
11

edited Jul 29 '12 at 09:31


Hi,

Here is how you can do this:

1
2
3
<FilesMatch ".*">
SetHandler none
</FilesMatch>

answered Jul 29 '12 at 09:41

todork's gravatar image

todork
10964

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

Thank you.

(Jul 29 '12 at 10:02) Boozezela Boozezela's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×146
×19
×11

Asked: Jul 29 '12 at 09:28

Seen: 656 times

Last updated: Jul 29 '12 at 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