Register  |  Login



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
Answer Summaries

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

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?

Summaries 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 servers Experts

View More

Rank

Expert

Points

1.

oracleofDelphi

332

2.

PeterNZ

190

3.

rcastagna

62

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