phpbar.de logo

Mailinglisten-Archive

[php] Offline Reader aussperren?

[php] Offline Reader aussperren?

Cyrill Schumacher php_(at)_phpcenter.de
Tue, 3 Jul 2001 14:36:29 +0200


> $notallowed[1] = "HTTrack";
> $notallowed[2] = "Teleport Pro";
> $notallowed[3] = "WebStripper";
> $notallowed[4] = "WebZIP";
>
> for($i=1;$i<=sizeof($notallowed);$i++) {
>   if(preg_match("/$notallowed[$i]/",$HTTP_USER_AGENT)) {
>     exit();
>   }
> }

viel zu umständlich

if(preg_match("/mozilla/i",$HTTP_USER_AGENT)==false){die("exit");}

kiri




php::bar PHP Wiki   -   Listenarchive