On Dec 19, 2007 12:26 PM, Stut <[EMAIL PROTECTED]> wrote:
> Daniel Brown wrote:
> > On Dec 19, 2007 11:18 AM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> >>
> >> On Wed, December 19, 2007 9:31 am, Richard Heyes wrote:
> >>>>> I think that any MTA or client that doesn't work with the
> >>>>> Reply-To header isn't worth beans.
> >>>> very very true
> >>> Well the Reply-To: header isn't for bounces.
> >> The OP was asking about Return-path, not Reply-to
> >>
> >> Furthermore, while the MTA/client/MUA may not be worth beans, that
> >> doesn't mean nobody is using it.
> >>
> >> I don't think any MS products are worth beans; Yet many people are
> >> using them. Should I not bother to check IE compatibility?
> >
> > Actual code from a live page of mine. Just because I could. ;-P
> >
> > <?
> > if(!stristr($_SERVER['HTTP_USER_AGENT'],"mozilla")) {
> > die("We only allow Mozilla browsers in here!\n");
> > }
> > ?>
>
> You could, but you didn't!! This is a typical user agent provided by IE7...
>
> Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR
> 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)
>
> All IE browsers since the beginning of time have sent a user agent
> containing "mozilla".
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
--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]
If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php