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/13/05 22:45

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

 

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

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