Forum Moderators: phranque

Message Too Old, No Replies

Is there a way to block the Mozilla browser

Block people using mozilla on my site.

         

PFOnline

12:54 am on Sep 25, 2004 (gmt 0)

10+ Year Member



I just found out my website looks messed up in the Mozilla browser, and I don't have to redesign the whole site over, so I was wondering if there was just a way to have a script that "sniffs" which browser people are using, and if it detects Mozilla, to redirect to a page that says "Sorry. Web page looks messed up with Mozilla browser." Or something to that effect.

UDaMan

1:16 am on Sep 25, 2004 (gmt 0)

10+ Year Member



"Sorry. Web page looks messed up with Mozilla browser." Or something to that effect.

Tee Hee,

If it is really as bad as you make out do you NEED to tell your visitors (I would have guessed they would have worked it out already)? I would think you'd best spend your time working out how to fix you rendering issues. Alternatively you could look into redirecting Mozilla users to an un-marked up text only version of the page in the meantime.

Best of luck.....

jdMorgan

1:18 am on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I visit your site with Mozilla occasionally, and it's not that messed-up looking. Please don't block me!

Mozilla usage is increasing due to publicity about IE's security issues and the CERT recommendation.

Why not take your time and fix the worst problems as time allows? I think blocking Mozilla is rather a drastic move.

Jim

your_store

1:35 am on Sep 25, 2004 (gmt 0)

10+ Year Member



I think blocking Mozilla is rather a drastic move.
I'd second that, especially if we are talking about the site in your profile.

I can't imagine that Mozilla would break the your tab layouts unless the user was overriding your font selection with a none monospaced one.

bcc1234

1:42 am on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Pathetic things like that is the reason I use this

[extensionroom.mozdev.org...]

It would not be as bad if half of the banks and other "important" sites didn't seem to follow the same PATHETIC logic.

Sorry dude, but you hit a nerve here :)

claus

2:02 am on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Speaking as a mozilla user, i'd say that i'm used to getting a few design oddities here and there, but the content that i'm after never escapes me.

Also, as a mozilla user, the worst thing - almost an insult - is those pages saying "sorry, this page is intended for IE", especially as i know that i'll always be able to see the content i'm after (unless it's one of those plugins that i've deliberately chosen not to install, but i've got IE for that type of stuff.)

So, i'd say that your worries (whatever they are) might not be shared by the mozilla users at all, although you think so.

[edited by: claus at 2:04 am (utc) on Sep. 25, 2004]

victor

2:03 am on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You know, there were a whole pile of threads less than a year ago along the lines of "Why should I bother about browsers other than IE? There just aren't enough users to bother about"

(Kinda strange, for an industry that has grown up in less than 10 years from next-to-nothing for so many people to believe that the future was fixed forever).

And now (at least for the forseeable future), IE-usage is likely to drop to a point that makes a measurable difference to many website owners.

So, a good question is "My site ony works in IE, what can I do about it?

But I'm not sure a good solution in most cases is: "Huddle in close and ignore the rest of the world"

But, if it's what you want to do, sniff and ban by user-agent id. It won't be perfect, because (as already stated) Firefox/Mozilla/Opera have or can have user-settable UA ids. But if it maks you happy....

MatthewHSE

2:26 am on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As another Mozilla (FireFox) user, I would suggest you simply work on your site so it does fine with Mozilla. That's likely to be the best method in the long run anyhow. Also, you might want to try developing "for" Mozilla to start with, then debugging for IE. That's much easier than developing "for" IE's buggy rendering and then trying to "debug" for Mozilla. Also, most Mozilla users know all about how to change the user-agent, so you can't really keep them out anyway.

PFOnline

2:30 am on Sep 25, 2004 (gmt 0)

10+ Year Member



You know, thanks for the replies. I don't think I'll block mozilla now. It just looked really unprofessional, cause the design was really messed up.

But the site is still browsable, things just look out of place. But I guess that's better than completely blocking people.

Maybe I can redirect to a page that says "This site may not look correctly with the mozilla browser, but you still may browse if you wish, click here to enter."

To just warn them, the site will look weird, and we're aware of it, but still give them the option to come in.

claus

2:47 am on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>> This site may not look correctly with the mozilla browser

Hey, if you always see it with the moz browser, how would you know that it should be displayed in another way than it is?

To a person using the moz browser it is displaying correctly, although it might not look like it does in IE - but still, those users (me included) will never know the difference, as they simply don't (wish to) see the IE version. They're not likely to switch to the IE browser just to see a page displayed a bit differently.

So, by putting that page up, you're essentially just displaying a nag screen although you don't really have to.

mincklerstraat

8:26 am on Sep 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the future, you'll want to start out with the moz browser, or the firefox browser (very similar in rendering). It's generally easier to start with moz, get things right that way, and then correct for the ie bugs, because if it looks 'wrong' in one of the two, the best bets are that it's ie - ie is pretty notorious for improper rendering. Fortunately with ie you can add a separate css sheet that keeps your pages valid, but is only used by ie, using 'ie conditional comments'. Search this site for that word. This will give you cross-browser friendly sites with a minimum of extra work, with results that not only look professional, but are of professional quality as well.

vkaryl

1:14 am on Sep 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



PFOnline: your site looks great in Firefox 1.0PR (assuming of course that the one you're talking about is the one in your profile).

I haven't tried it in IE because I'm not surfing with IE any more. But I don't see anything that looks totally OOP in Firefox. In fact, your site design is nice n clean, fast loading, easy to navigate....