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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general,php.windows
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to