Results 1 to 23 of 23

Thread: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Resolved [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Hi ,

    i finished my WebSite & I want to made it availabe only for Mozilla users
    so what i can do when a Internet explorer user or other enter in the site cant access to it

    Thanks !

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    Toronto, ON
    Posts
    1,093

    Re: Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Here is a link that shows how to check the browser version that people are logging in with.

    If they are using IE, just redirect them to yourbrowsersucks.html.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    So your only going to get a max of 25% of internet traffic on your site

    Simple brower detection and redirection will do it like Tom linked but you will need it on every page of your site.

    Oh and we could always create our own browser and fake the Agent
    [/color]
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Depends on what server-side language you've used. Basically you'll need to find the user-agent of the browser form the HTTP-Header and generate your page accordingly.
    Here is an example in JSP.

    If you've used plain HTML, you can still (somewhat) get this functionality by using JavaScript and maybe some redirection (or hide the whole page using CSS). But the server-side technique is better.

    But remember that, none of these are 100% full-proof, since user-agent can be easily changed in any browser.

    Edit: Too slow.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    hmm oK I will check it with JavaScript in The link That posted Tom
    yes of course i will get a lower people visiting my web site
    but it's just come to my mind this suggestion that perhaps i will need it duo to some problem of showing my Page correctly on Internet Explorer
    because it's work as i coded Mozilla but in Internet Explorer some bugs ..

    Thanks

  6. #6
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    If I were you, I would have redesigned my site to work correctly in IE. It has most users after all.

    Anyway, follow W3C rules, make sure your site has valid HTML (and valid CSS) and hopefully M$ will release some patch for the bug.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Well if its just to be sure the page is displayed correctly in IE then detect the browser agent and redirect to another viersion of your site for non FF users.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    i used some function blink ....
    so if i can valid my site can i get blink & others of cours work in internet Explorer,?

  9. #9
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Text blinking ? I think IE and FF can display it correctly, but Opera can't. I could be wrong.

    I would advise you to not use it. It will distract your visitors. How many 'good' websites have you seen with blinking text ?
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    oK I See !

    Thank You Guy !

  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Quote Originally Posted by killer7k
    Hi ,

    i finished my WebSite & I want to made it availabe only for Mozilla users
    so what i can do when a Internet explorer user or other enter in the site cant access to it

    Thanks !
    What a ridiculous idea.


    There is no infallible way of detecting the user's browser. There are practical ways of detecting whether or not certain things will work in whatever browser the user is using, but that's different.

    If your page displays correctly in Mozilla but not in IE, that's an indication that you've designed it correctly. Now add conditional code to work around IE's limitations. For example, you can use conditional comments to include an additional stylesheet that overrides particular CSS rules in order to fix display issues in IE.

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Don't use the browser detection. Let the page appear broken in IE, you can fix it later. It'll be a 'treat' for your loyal IE visitors.

  13. #13
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Are you only blocking IE or are you only letting in certain browsers? If the latter, then that's a bad idea. Opera has superior rendering to Firefox; don't shut it out!
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Yes Yes ...
    It's a ridiculous idea
    I just want to know it !

  15. #15
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    I say leave the code as is... next version of IE promises to FINALLY be web compliant. Let them wait till then for not pushing M$ harder on that issue.

  16. #16
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Quote Originally Posted by Jenner
    I say leave the code as is... next version of IE promises to FINALLY be web compliant. Let them wait till then for not pushing M$ harder on that issue.
    Yes, IE8 is much better.... but it won't do that by defauly. You either have to specify a specific header within the meta tags or setup your server to send special headers.

    Pretty lame, IMHO especially since that's what the DOCTYPE was created for.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  17. #17
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    It's not lame. It's a necessity in order to avoid breaking pages that currently test for IE. Such pages would attempt to work around bugs that no longer exist in IE 8.

  18. #18
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    then IE8 could simply have a "pretend to be firefox" option!
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  19. #19
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    But, conversely, many applications require IE.

    Catch 22...

  20. #20
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    Quote Originally Posted by penagate
    It's not lame. It's a necessity in order to avoid breaking pages that currently test for IE. Such pages would attempt to work around bugs that no longer exist in IE 8.
    No, it is lame. First off, they are using a meta tag / server header to do exactly what the DOCTYPE was created to do. That's ass backwards. Then, they baby web developers who can't create correct HTML.

    At some point Microsoft will have to bite the bullet and end backwards compatability otherwise they will never be able to properly implement any new client side features like CSS3.
    Quote Originally Posted by penagate
    But, conversely, many applications require IE.

    Catch 22...
    Well, that's the developer's problem for developing the application incorrectly.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  21. #21
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter

    That attitude is idealistic and naïve.


    You cannot make up doctypes as you please. That is the type of arrogance that caused this mess in the first place.

    The header is a simple straightforward solution that, while perhaps unintuitive, is elegant, because it will be silently ignored by all other browsers. This is the purpose of headers. It is not 'ass backwards' as you so eloquently put it.



    Quote Originally Posted by kasracer
    Well, that's the developer's problem for developing the application incorrectly.
    Consider a company who have a 6 year old intranet application that works flawlessly in IE 6 and breaks in IE 8. Chances are the developer has by now forgotten all about how it works, switched careers, or is dead. Now convince them that they need IE 8.
    Last edited by penagate; Feb 13th, 2008 at 12:14 AM.

  22. #22
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter

    Quote Originally Posted by penagate
    That attitude is idealistic and naïve.

    You cannot make up doctypes as you please. That is the type of arrogance that caused this mess in the first place.
    What are you talking about? Who is suggesting making up DOCTYPES? I'm saying they should properly use DOCTYPES.

    I'm not being naive. Microsoft is still stiffling web development and progress. I'm sorry if you don't like it, but Firefox, Safari and Opera are leaving IE far behind and IE's market share has been steadily falling. If Microsoft doesn't start innovating they will eventually lose this race.

    I don't know about you, but I've worked as a web developer for at least 5 years and IE is nothing but a headache.
    Quote Originally Posted by penagate
    The header is a simple straightforward solution that, while perhaps unintuitive, is elegant, because it will be silently ignored by all other browsers. This is the purpose of headers. It is not 'ass backwards' as you so eloquently put it.
    It's not elegant. It's hacky at best as it's a non-standard solution. What they should have done was make it so you have to opt-in on backwards compatability. Otherwise no one will ever fix their existing applications or use new technology.
    Quote Originally Posted by penagate
    Consider a company who have a 6 year old intranet application that works flawlessly in IE 6 and breaks in IE 8. Chances are the developer has by now forgotten all about how it works, switched careers, or is dead. Now convince them that they need IE 8.
    Not our problem. Their IT can keep IE6 or IE7 on everyone's machine. Done. If they don't want to upgrade then they don't have to.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  23. #23
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)

    you could always put one of those "works best when viewed in firefox" banners on it.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

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



Click Here to Expand Forum to Full Width