Results 1 to 3 of 3

Thread: No Other Browsers...........

  1. #1
    Join Date
    Apr 2009
    Thanked 0 Times in 0 Posts

    Default No Other Browsers...........


    I have made a website on my local machine.
    I want that it works with only IE & FF.

    Is there any script that can be helpful to me.

    I want that, when browsers tried to open the page, a custom message should be displayed first and depends upon browsers, page loads.

    Does anyone help me?

  2. #2
    Join Date
    Apr 2008
    Thanked 516 Times in 502 Posts
    Blog Entries


    you might start with DD's Browser Sniffer script. It can id IE, but FF is lumped in with all the other "Gecko/KDE-based browsers that are not NetScape".

  3. #3
    Join Date
    Mar 2006
    Illinois, USA
    Thanked 690 Times in 678 Posts


    This is, overall, the wrong approach to website design. You should at most give a notice that those browsers are preferred/supported, and at best use standards so that it should be compatible with all browsers.
    You can use several methods to deny access to other browsers, but that's like trying to vaccinate yourself against all diseases except the common cold and the flu-- you can't be sure exactly what's going to try to access your site and you can't block it really. Even if you do try to block it with only allowing those (if it's not one of those blocking it), then it might work but you'll get some errors (some people blocked who are using those, some people not blocked who aren't). Javascript can be disabled in the browser; a server side solution requires that the information sent to the server is accurate and that is not always the case.

    The best approach would be to try a server side approach, I guess, and check the browser type (if it contains "IE" or "Mozilla" let it pass, basically), but that isn't a good plan if you want people to like your site.

    The only case in which this would make real sense is if you are designing a complex application that really needs the specific support of one browser, but if you make it compatible with Firefox and IE, then it won't be hard to get it to work for the rest. Firefox is very close to standards compliant; anything that works in it should be close to working in most other close-to-standard browsers, and IE is problematic and not standards compliant-- but usually that is the problem browser; if you already have it working, then you have standards and IE met, so there's no real reason to disallow other browsers.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. The Following User Says Thank You to djr33 For This Useful Post:

    dchopda (04-07-2009)


Posting Permissions

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