Re: Deny access from certain hosts

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

 



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@xxxxxxxxx

www.atlspecials.com
www.da3.net

--
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