Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 11:43:09 AM

Pages: [1]   Go Down
  Print  
Author Topic: Disable PHP  (Read 400 times)
chenyk
Newbie
*
Offline Offline

Posts: 3


WWW
« on: November 21, 2002, 01:12:00 AM »

Hi everyone,

Following is my problem that I'm trying to resolve but so far no luck. I did a search both in this forum and google but couldn't find anything.

I'm trying to create upload file feature where user can uplaod any of their file (as storage). So I would like to disable the PHP on this specific directory and its subdirectories. Is there any way I can disable php execution? If this possible how can I do it?

Thanks for your help.
Logged
stephan
Guest
« Reply #1 on: November 21, 2002, 01:41:00 AM »

You will also have to disabled ASP, CGI, JSP etc.

This has been talked about on this page - http://www.lunarforums.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=1;t=000801

The easiest way to do what you want, is simply not allow the .php extension on files saved to your webspace.
Logged
chenyk
Newbie
*
Offline Offline

Posts: 3


WWW
« Reply #2 on: November 22, 2002, 12:16:00 AM »

Thank you, Stephan.

I will try to modify the .htaccess today and see how it work out.

Thanks,
- David
Logged
gruckiii
Spaceship Navigator
*****
Offline Offline

Posts: 93



WWW
« Reply #3 on: November 22, 2002, 12:29:00 AM »

quote:
 
The easiest way to do what you want, is simply not allow the .php extension on files saved to your webspace.

A better way would be to exlusively allow only certain extinsions. If you are writeing the upload script, have it only allow the file extensions you want. This way when some new scripting technology comes out with .xxx extension, you don't have to update your script to disallow it.

Also, you may simply not be aware of all possible extensions that may pose a security threat.
 
 [ November 22, 2002, 08:30 AM: Message edited by: gruckiii ]
Logged
stephan
Guest
« Reply #4 on: November 22, 2002, 01:25:00 AM »

Yes, good idea.

Then again, if a new scripting language were to be installed, lunarpages would tell you, but yes, I do see your point.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: