Jump to content

htaccess-- disallow php scripts from running???


dj-kenpo

Recommended Posts

Weird question to ask on the php forum I know ... ;)

 

I want to have a small add on for my main site that's an open ftp area (ftp.domain.com). private, but really, people share passwords etc so not so private when all is said and done.

 

problem is, I don't want people uploading php scripts and running something like, ../main_domain/ delete everything script.

 

It's to be used for images only, a sort of temp folder online. (ie, webforms are slow and annoying for large numbers of files...)

 

can I disallow php/asp/jsp and anything else (you can think of) dangerous via an htaccess command?

 

also, can the htaccess file for that be outside of the root directory? otherwise anyone can delete it...

Link to comment
Share on other sites

cool, 1 down. 4+ to go.

 

also need to disable asp, jsp ruby, etc.

 

I wonder, you can tell apache to parse say, .rss as a php file. perhaps I can just do the reverse and tell it to parse EVERYTHING on this domain as .html. so nothing dynamic can possibly run.

 

 

but how do I place the htaccess file outside of the domain directory and then refrence THAT domain only?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.