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.

Bookmark & Share

Related Posts

About the Author

author photo

Want to get more out of your PC, the internet or your mp3 player? Onetipaday.com is here to provide clear simple tips and guides to help you achieve just that. Each tip will be easy to implement and will take no more than 5 minutes to read and implement. What will you learn today?

See All Posts by This Author

There Are 12 Responses So Far. »

Pages: [2] 1 » Show All

  1. #12

    Not working for me … I’m doing it correctly but it is still showing on FF3 browsers (FF3 is what I’m using)

  2. #11

    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.

Pages: [2] 1 » Show All

Subscribe without commenting

Post a Response


Comment Policy: Any comments are permitted only because the site owner is letting you post, and any comments could be removed for any reason at the absolute discretion of the site owner.