Re: Deny access from certain hosts

From: Date: Tue, 13 Sep 2005 19:45:36 +0000
Subject: Re: Deny access from certain hosts
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-222285@lists.php.net to get a copy of this message
you need to do it like this: Order Allow,Deny Allow from all Deny from 85.65.154 http://httpd.apache.org/docs/1.3/mod/mod_access.html Jordan On Sep 13, 2005, at 2:30 PM, David Pollack wrote:
Hello,
       I have a problem where someone is illegally linking to my site.
There site is in another language so I'm having trouble contacting them. Is there any way that I can use PHP or Apache to stop them from linking to these files directly on there website. This is an example of a log entry that I get from their link: 85.65.154.185 - - [04/Sep/2005:06:52:40 -0700] "GET /fonts/images/austrise.jpg HTTP/1.1" 200 6094 "http://www.tipo.co.il/zone/page.asp?zone=41611880647891&pid=1044663" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" I've tried using mod_access with a simple directive in my <VirtualHost> like: <Directory /home/da3/public_html/fonts>
           Deny from 85.65.154
</Directory> And that does not seem to work. I have mod_access installed and PHP 4. I'm sorry if this is more of an apache question but it just seems like it should be so easy and I can't find a single example of how to stop this. --David Pollack DHPollack@gmail.com www.atlspecials.com www.da3.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#222285) next »