On 6/27/06, Marian Briones <[EMAIL PROTECTED]> wrote:
> Now here's the kicker: How can I protect access to the image
> directories? I suppose I can put a blank index.html file in each of
> the image directories that are being protected to prevent browsing of
> the directories themselves, but I'm concerned and want to do this the
> right way and I sure don't want Harley coming after us...
Using apache? If so, put this in your .htaccess:
Options -Indexes
If you have access to server configuration, it would be better to put
it there. Additionally, you might want to make a nice looking page for
those 403 ("forbidden") errors that will arise when someone tries to
look at a directory without an index. Use something like this:
ErrorDocument 403 /error/403.php
That will show /error/403.php instead of the default "Forbidden" page
from apache.
--
Bruno Lustosa <[EMAIL PROTECTED]>
ZCE - Zend Certified Engineer - PHP!
http://www.lustosa.net/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/