Re: Deny access from certain hosts

From: Date: Wed, 14 Sep 2005 15:23:56 +0000
Subject: Re: Deny access from certain hosts
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-222402@lists.php.net to get a copy of this message
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


« previous php.general (#222402) next »