You are here: RE: [PHP] Deny access from certain hosts « PHP « IT news, forums, messages
RE: [PHP] Deny access from certain hosts

Posted by Jim Moseby on 09/13/05 22:56

> 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.
>
Look at it this way, they have graciously given you full control over a
small portion of their website. You should reciprocate with some creative
ideas.

What I would do first is replace /fonts/images/austrise.jpg on my site with
a picture of something REALLY disgusting, and use a different file for my
site.

Then, after I have had a few chuckles, and I'm convinced that the bandwidth
bandito has learned a lesson, fix it as Jordan Miller has suggested.

JM

 

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

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