|
-
Feb 7th, 2008, 04:10 PM
#1
Thread Starter
Fanatic Member
[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 !
-
Feb 7th, 2008, 04:15 PM
#2
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.
-
Feb 7th, 2008, 04:18 PM
#3
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Feb 7th, 2008, 04:23 PM
#4
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.
-
Feb 7th, 2008, 04:38 PM
#5
Thread Starter
Fanatic Member
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
-
Feb 7th, 2008, 04:48 PM
#6
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.
-
Feb 7th, 2008, 04:49 PM
#7
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Feb 7th, 2008, 04:50 PM
#8
Thread Starter
Fanatic Member
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,?
-
Feb 7th, 2008, 04:58 PM
#9
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 ?
-
Feb 7th, 2008, 05:00 PM
#10
Thread Starter
Fanatic Member
Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)
oK I See !
Thank You Guy !
-
Feb 9th, 2008, 03:22 AM
#11
Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)
 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.
-
Feb 12th, 2008, 03:01 PM
#12
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.
-
Feb 12th, 2008, 03:34 PM
#13
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!
-
Feb 12th, 2008, 03:50 PM
#14
Thread Starter
Fanatic Member
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 !
-
Feb 12th, 2008, 04:50 PM
#15
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.
-
Feb 12th, 2008, 08:05 PM
#16
Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)
 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.
-
Feb 12th, 2008, 08:47 PM
#17
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.
-
Feb 12th, 2008, 09:00 PM
#18
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!
-
Feb 12th, 2008, 09:54 PM
#19
Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)
But, conversely, many applications require IE.
Catch 22...
-
Feb 12th, 2008, 11:32 PM
#20
Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter it)
 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.
 Originally Posted by penagate
But, conversely, many applications require IE.
Catch 22...
Well, that's the developer's problem for developing the application incorrectly.
-
Feb 13th, 2008, 12:08 AM
#21
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.
 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.
-
Feb 14th, 2008, 01:27 AM
#22
Re: [RESOLVED] Hiding My WebSite From Internet Explorer Users (only Mozilla Can enter
 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.
 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.
 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.
-
Feb 14th, 2008, 08:30 AM
#23
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|