On 7/5/07, Pieter du Toit <[EMAIL PROTECTED]> 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