Re: Stop Download managers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/5/07, Pieter du Toit <pieter@xxxxxxxxxxxxxxxxx> wrote:
Hi

Is there a way to stop download managers on my php webpages?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   You could do it by restricting the user agents like so....

<?
if(!stristr($_SERVER['HTTP_USER_AGENT'],"mozilla")) {
   die("We only allow Mozilla browsers in here!\n");
}
?>

   ---- OR ----

<?
if(stristr($_SERVER['HTTP_USER_AGENT'],".net")) {
   die("You appear to be using a more modern version of Internet Exploder.\n");
}
?>

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux