PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old May 14th, 2002, 08:08 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Making PHP safe for (and from) kids

Can anyone recommend a book or a site that really delves into controlling security with Apache and/or PHP?

I'm teaching programming to some junior high school students and some of them are pushing to do server side coding. I'd like to provide the workspace for them to do this on my hosted site but obviously I need to limit students to file operations within their own folders.

On the other hand I have scripts running that I don't want to restrict. They're written by me so they're highly trusted and infallible (yuk-yuk).

I'm basically looking to learn about how to implement highly granular and specific security restrictions and would love to hear about any documentation that focuses on this. I think PHP's open_basedir setting, using cgiwrap and settings for Apache might hold some promise, but I'd really like to understand the whole area a lot better before working on a solution.

BTW, I do have access to the httpd.conf and php.ini files for my domain.

Thanks in advance,
jam

Reply With Quote
  #2  
Old May 14th, 2002, 08:16 PM
ApeWare ApeWare is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Orlando, FL
Posts: 5 ApeWare User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Making PHP safe for (and from) kids

Here is a guide to htaccess. http://www.wsabstract.com/howto/htaccess.shtml You can use this to secure a directory. There are some scripts here and on hotscripts.com that allow you to manage your htaccess files. This is an option, may not be the best, but it is a start.

Reply With Quote
  #3  
Old May 14th, 2002, 08:20 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Making PHP safe for (and from) kids

Sorry to take this off the topic you asked about, but why not just grab an old box and install apache and php on it? Seems like it would be much easier to do that. Then, you aren't even worried about the students mucking the box up, just reload it if it gets out of hand...


Reply With Quote
  #4  
Old May 14th, 2002, 09:56 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Making PHP safe for (and from) kids

Thanks for the reading material, I'll check that out.

Setting up a dedicated machine is an option to consider but I'd prefer it if I could do it on my hosted site. That way they can work on their projects while out of class and I don't really have the resources to put a dedicated machine on the net. But if I run into a real dead end I'll keep that in mind. Well, Summer's almost here and I'll have some time to think about it.

Thanks!
jam

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Making PHP safe for (and from) kids


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway