SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    browser detection script

    i need a good browser detection code
    so u can only view my site using new firefox or i.e 7

    does anyone have any links?

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, because they're not only a bad idea but also because browsers can literally lie to the script that's doing the browser detection. Rather than just force-feeding a detection script to Browsers A and B, why not take the time to learn how the browsers render pages and interact with scripts?

    Also note that by using a browser detection script that only detects IE 7 and Firefox, you'll be deliberately blocking out IE 6, Opera, Safari, Konqueror and other browser users - which is a BAD idea.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •