Re: Protecting Commercial PHP Scripts

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

 



Hi Dirk,

> I found this one very usefull:
> http://shiflett.org/php-security.pdf 

Nice docu *g*

Does someone use this code out from the
docu mentioned aboved ?

It work's for me only under Explorer, Netscape
switch to exit.

#
# Verify HTTP Header
#

if (isset($_SESSION['HTTP_USER_AGENT'] ))
{
   if ($_SESSION['HTTP_USER_AGENT'] != 
      md5($SERVER['HTTP_USER_AGENT']))
   {
      exit;
   }
} 
else {
   $_SESSION['HTTP_USER_AGENT'] = md5($_SERVER['HTTP_USER_AGENT']);
}

-- 
Best Regards,

Mark

-- 
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