RE: Just to confirm...

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

 



> <?
>     if(stristr($_SERVER['HTTP_USER_AGENT'],"msie")) {
>         die("No friend of Internet Exploder is a friend of mine.");
>     }
> ?>

Lol!!! I need to implement that on ALL my sites ... XD!!


Xavier de Lapeyre




-----Original Message-----
From: Richard Heyes [mailto:richardh@xxxxxxxxxxx] 
Sent: jeudi 20 décembre 2007 14:26
To: Daniel Brown
Cc: Stut; ceo@xxxxxxxxx; Zoltán Németh; PHP General List
Subject: Re:  Just to confirm...

>     Bah!  You're right, I changed it to just be an easter egg in the
> code.  The original (now commented out) was:
> <?
>     if(stristr($_SERVER['HTTP_USER_AGENT'],"msie")) {
>         die("No friend of Internet Exploder is a friend of mine.");
>     }
> ?>
> 
>     It initially started to try to stop cURL, wget, Lynx, and other
> automated clients from grabbing the content from the page.  Again, I
> know that headers can be spoofed, but that's a different topic.  I try
> to make a joke and Stut shoots me in the ass.  ;-P

I've got to ask, why on earth would you want to do this? Robots and 
things like wget I could understand more, but purposefully cutting out a 
large chunk of your audience?

-- 
Richard Heyes
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

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

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