Re: dose some one know of a scrip that will .......
| From: | Richard Lynch | Date: | Thu, 30 Aug 2001 09:34:16 +0000 |
| Subject: | Re: dose some one know of a scrip that will ....... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65230@lists.php.net to get a copy of this message | ||
Move your images out of your web-tree.
Write a display.php script that use http://php.net/header and
http://php.net/readfile to serve them up.
Log each IP and $HTTP_USER_AGENT into MySQL with a timestamp.
$query = "select count(*) from piclog where thetime + '35 seconds' >= now()
and ip = '$REMOTE_ADDR' and browser = '$HTTP_USER_AGENT'";
If that count is too high, do whatever.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Danial <webmaster@cyberhoties.com>
Newsgroups: php.general,php.windows
To: <php-general@lists.php.net>; <php-windows@lists.php.net>
Sent: Monday, August 27, 2001 1:46 AM
Subject: dose some one know of a scrip that will .......
> dose some one know of a scrip that will stop someone from leeching my
> images..
>
> like. if someone downloads 4 picturs in 35 sec. he will be and for 60 sec.
> im looking for something that will stop ppl for useing things like
> http://www.quadsucker.com/quadweb/ (( QuadSucker-Web )) - witch
> says to
the
> server it is a Mozilla/4.0 browser -to download my hole website it kills
my
> server when 2 or 3 ppl start to do it...
>
> I Could use
> <?
> $browser = array ("Wget", "EmailSiphon",
> "WebZIP","MSProxy/2.0","EmailWolf","webbandit","MS
> FrontPage");
> $punish = 0;
> while (list ($key, $val) = each ($browser)) {
> if (strstr ($HTTP_USER_AGENT, $val)) {
> $punish = 1;
> }
> }
> if ($punish) {
> echo " <head>
> <title>Access Denied</title>
> </head>
> <p>We're sorry. The software you are using to access our website is not
> allowed.
> Some examples of this are e-mail harvesting programs and programs that
will
> copy websites to your hard drive. If you feel you have gotten this message
> in error, please send an e-mail addressed to admin. Your I.P. address has
> been logged
> Thanks.</p>
> <BR>
> -Yourname
> <BR>
> </body>
>
> ";
> exit; } ?>
>
>
> But dont do any good if the USER_AGENT stats it is a Mozilla/4.0
>
>
>
> any help would be cool
>
> thanks
>
> danial lee smith
> Danial, HTTP://WWW.CYBERHOTIES.COM
>
>