Re: Deny access from certain hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux