Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: protect images from download



You should add that it depends what group and owner are set.  If the webserver user is the owner, 600 would still be readable on the web.  If the group is set to the webserver's, 640 would still be readable.

Configurations vary, but on many BSD systems, apache runs with a user of www and group www.  I'm not suggesting that you actually use this user or group, just pointing out the numbers alone don't control reading the files.  



On Apr 19, 2008, at 8:16 PM, Robert Poland wrote:

Walter,

<?php
// Read and write for owner, nothing for everybody else
chmod("test.txt",0600);
// Read and write for owner, read for everybody else
chmod("test.txt",0644);
// Everything for owner, read and execute for everybody else
chmod("test.txt",0755);
// Everything for owner, read for owner's group
chmod("test.txt",0740);
?> 







Lucas Holt

email@hidden

________________________________________________________

MidnightBSD.org (Free OS)

JustJournal.com (Free blogging)





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden

References: 
 >protect images from download (From: Robert Poland <email@hidden>)
 >Re: protect images from download (From: Ben <email@hidden>)
 >Re: protect images from download (From: Walter Lee Davis <email@hidden>)
 >Re: protect images from download (From: Robert Poland <email@hidden>)
 >Re: protect images from download (From: Walter Lee Davis <email@hidden>)
 >Re: protect images from download (From: Robert Poland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.