How To Display Firefox Referral Ads Only To Non-Firefox Users
I’ve been running this site for around 9 months now, and although I didn’t start running it to make money it is actually generating enough money now to pay for a few nights out a month. I decided today to see if I could find ways to improve the revenue generation, without ruining the user experience.
I noted that around 60% of my readers are still using Internet Explorer and not Firefox, so I decided to look for a way to promote Google Adsesne Firefox Referrals to non-Firefox readers only, so that they can benefit from the best browser out there, whilst I make up to $1 per user that I convert and educate.
Eventually I found a very simple way to do this. To only show a Firefox referral ad to non-Firefox users just add this code to your site where you want you Firefox referral ad to be displayed:
<?php if ( !strpos($_SERVER['HTTP_USER_AGENT'], ‘Gecko’) ) { ?>
<!– Put the code you want to display to non-firefox users here –>
<?php } ?>
Once you’ve done this, your Firefox referral ad will be displayed to ALL users visiting your site who are not using Firefox.

Comment by Mark on 2 July 2008:
Not working for me … I’m doing it correctly but it is still showing on FF3 browsers (FF3 is what I’m using)
Comment by flamez on 23 June 2008:
That code, if im not mistaken shows ads only to gecko users.
I recommend you make a simple if user agent is firefox = false code instead of that one. It will show the ad to EVERY browser besides firefox.