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



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);
?> 



On Apr 19, 2008, at 4:28 PM, Walter Lee Davis wrote:


On Apr 19, 2008, at 5:04 PM, Robert Poland wrote:

Walter,

Your idea looks interesting but I can't seem to figure out how to apply it.

Could you give me an example?


On Apr 19, 2008, at 9:43 AM, Walter Lee Davis wrote:

If you can see it in the browser, you can keep it. If you want to keep people from stealing your images, you could do

chmod 600 *.jpg


That was actually a joke! If you do this, all the jpeg images in the current folder will simply disappear from the browser. By setting the "world" permissions to none (what the third 0 means), you effectively remove permission for anyone to see them. 644 is normal for images on a Web page, it means the file owner can read and write, group and everyone else can read only.

Walter


Bob Poland - Fort Collins, CO



 _______________________________________________
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>)



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.