You are here: Re: [PHP] Deny access from certain hosts « PHP « IT news, forums, messages
Re: [PHP] Deny access from certain hosts

Posted by Jordan Miller on 09/14/05 18:23

if people are allowed to post copyrighted images to your bulletin
board, shouldn't you have some sort of password protection anyway?

negating that, i would do it with PHP and not Apache. rather than
simply serving up the file raw:
<img src="image.gif">

why not setup a php script to do URL referring blocking:
<img src="getFile.php?img=image.gif">

in the getFile.php file, you could check the referring URL, and then
present the file, or not. you would need to move the images out of
the web tree, though, so people couldn't bypass your script.


it sounds like you need to reconsider what you really want, though.

Jordan






On Sep 13, 2005, at 3:00 PM, Aaron Greenspan wrote:


> Jordan,
>
> I have a similar problem where someone is using copyrighted images
> on my site in a bulletin board. It's not that one specific host is
> requesting the files--it's people from all over--but rather that I
> want to block one referring URL using Apache, rather than PHP,
> since the images are GIF files.
>
> Can you do that with .htaccess?
>
> Thanks,
>
> Aaron
>
> Aaron Greenspan
> President & CEO
> Think Computer Corporation
>
> http://www.thinkcomputer.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация