Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Open Points: 200 Time: 12:48 - Jan 10, 2008  

jgivoni

How to setup server to ignore .htaccess files in subdirectories.

I would like to set up a configuration so that some, but not all, .htaccess files are ignored - or handled as a regular (text-)file.

This should be setup in an .htaccess file and prevent i.e. Apache from processing .htaccess files in any subdirectory to the current. But I don't know which directive(s) to use.

The reason is that I have a folder where user uploads are stored. To prevent the user executing scripts (i.e. php) I have changed the handler for the files of the directory and subdirectories. But they could still upload an .htaccess to a subdirectory that reverted that change.

I know that the software should also dissallow certain files - and it will - but I don't wanna rely on the software alone, since 'any' bug could potentially render that useless.

I also cannot use the Apache conf file for this.
And lastly, the solution has to know nothing about the actual directory names it trying to protect.

Is it possible?

Thanks for your help,
Jakob

Answer Discussion
Tutorials

 

This question has not yet been answered.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10354

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es