Reply
How do i can block/denied Firefox browser user to visit my website?
Old 05-29-2008, 07:37 AM Re: How do i can block/denied Firefox browser user to visit my website?
Ultra Talker

Posts: 250
I think, it is good to learn CSS and create site for all browsers. In other hand like admin you have right to do whatever you want on your site. I am thinking little bit about problem and, in that situation, I will do something like that:
Code:
<style type="text/css">
<!--
.whatever{  
display : block;
}
-->
</style>
<!--[if IE]>
<style type="text/css">
.whatever{  
display : none;
}
</style>
<![endif]-->
HTML Code:
<div class="whatever">This site is created for best preview in IE browsers. </div>
In that case users with non IE browsers will get simple message how their browser maybe will not produce the best preview.

Shivaji

Last edited by shivaji : 05-29-2008 at 07:39 AM.
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 05-29-2008, 07:40 AM Re: How do i can block/denied Firefox browser user to visit my website?
tristanperry's Avatar
Average Talker

Posts: 15
Name: Tristan Perry
Location: United Kingdom
Wow, so you want to block 25% of your visitors?

Okay then.

Google "PHP browser recognition", and then use that PHP code to find and ban anyone who uses Firefox.

Edit: Actually, Shivaji's post above does it best. Although just a quick thing: the display: ; elements are the wrong way around.

You'd actually want to do "display: none;" to everyone, but then do "display: block;" only to those using IE
__________________
|| The Legion Host
|| Shared and Reseller hosting
|| cPanel | Daily off-site backups | Quality Support

Last edited by tristanperry : 05-29-2008 at 07:53 AM.
tristanperry is offline
Reply With Quote
View Public Profile Visit tristanperry's homepage!
 
Old 05-29-2008, 08:10 AM Re: How do i can block/denied Firefox browser user to visit my website?
King Spam Talker

Posts: 1,083
I am no expert for sure but it looks like Shivaji's code is correct.

If IE do nothing and if not IE display this message.

He isn't blocking them. He is warning them.
colbyt is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 08:20 AM Re: How do i can block/denied Firefox browser user to visit my website?
King Spam Talker

Posts: 1,083
Quote:
Originally Posted by JeremyMiller View Post
I absolutely deplore MS and everything it has created (I can't think of one positive creation by that company).

Makes me wonder what the installed base of computers world wide would be if all you saw when you turned them on was the flashing C:\>

Somehow I think maybe there would be a lot less users.
colbyt is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 08:30 AM Re: How do i can block/denied Firefox browser user to visit my website?
tristanperry's Avatar
Average Talker

Posts: 15
Name: Tristan Perry
Location: United Kingdom
Quote:
Originally Posted by colbyt View Post
I am no expert for sure but it looks like Shivaji's code is correct.

If IE do nothing and if not IE display this message.

He isn't blocking them. He is warning them.
Ah sorry, my bad! You are correct there

What I was thinking is that, with regards to the OP's original problem (i.e. he wants to block everyone who isn't using IE), they could do something like:

Code:
<style type="text/css">
<!--
body {
display: none;
}
!-->
</style>
<!--[if IE]>
<style type="text/css">
body{
display: block;
}
</style><![endif]-->
Although I wouldn't recommend blocking everyone but IE - for one, IE is an awful browser. We should be blocking everyone who uses it And secondly, at least 25% of people use Firefox and other browsers. Hence blocking all of these would be a huge mistake.
__________________
|| The Legion Host
|| Shared and Reseller hosting
|| cPanel | Daily off-site backups | Quality Support
tristanperry is offline
Reply With Quote
View Public Profile Visit tristanperry's homepage!
 
Old 05-29-2008, 08:51 AM Re: How do i can block/denied Firefox browser user to visit my website?
tripy's Avatar
Fetchez la vache!

Posts: 2,055
Name: Thierry
Location: In the void
Quote:
Originally Posted by colbyt View Post
Makes me wonder what the installed base of computers world wide would be if all you saw when you turned them on was the flashing C:\>

Somehow I think maybe there would be a lot less users.
Are you sure ?
I was playing with MS-DOS 3.3 when my school was teaching word processing on Mac Plus and OS/2 computers.
And there where multiple other alternatives that where created at the end of the seventies, beginning of the eighties already:
http://en.wikipedia.org/wiki/Xerox_Alto
http://en.wikipedia.org/wiki/Xerox_Star
http://en.wikipedia.org/wiki/Apple_Lisa

The industry is not where it is today because of Ms.
If Ms would not have filled that gap, another company would have.
They where at the right place at the right time, and made the right decision.
Nothing else.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 11:55 AM Re: How do i can block/denied Firefox browser user to visit my website?
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 984
Name: Jeremy Miller
Location: Reno, NV
Quote:
Originally Posted by colbyt View Post
Makes me wonder what the installed base of computers world wide would be if all you saw when you turned them on was the flashing C:\>

Somehow I think maybe there would be a lot less users.
If memory serves, it was like that: until MS copied Mac's "windowed" design... Then, years later, Vista would be known to copy Mac, yet again. If Mac's didn't have everything bound to their specific stuff and was more programmer friendly, then I'd be on one of them (well, probably Linux, but I just haven't gotten around to learning Linux yet and am not too sure about the GUIs available).
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 05-29-2008, 01:35 PM Re: How do i can block/denied Firefox browser user to visit my website?
LadynRed's Avatar
Super Moderator

Posts: 6,553
Location: Tennessee
The GUI interface would have come along even if MS hadn't been the one to steal things first for the pc and Windows 3.0 was certainly no prize-winner. There's just no way you can say we'd have nothing if not for MS. One or more of the companies that MS stole from, 'acquired' or crushed might have been the dominant player instead. No way to really know who would have stepped up, but things would not have stayed a C:\> and if you want to split hairs, originally there was no C drive!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 04:02 PM Re: How do i can block/denied Firefox browser user to visit my website?
dzigner's Avatar
Skilled Talker

Latest Blog Post:
Up and Running
Posts: 57
Hi
I would never dare to deny my website to 25% or more of the users of other browsers. But I see on many sites the warning about the site being best viewed in IE, and that would be better than just outright not show them the site
My opinion, of course.
Thanks
dzigner is offline
Reply With Quote
View Public Profile Visit dzigner's homepage!
 
Old 05-29-2008, 04:56 PM Re: How do i can block/denied Firefox browser user to visit my website?
King Spam Talker

Posts: 1,083
Quote:
Originally Posted by LadynRed View Post
and if you want to split hairs, originally there was no C drive!

How well I recall using a tape recorder as a drive.

Delighted when I got the wife model* real PC.

*Not quite enough memory and two floppies.

Sorry. The devil made me do it.
colbyt is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 06:00 PM Re: How do i can block/denied Firefox browser user to visit my website?
wayfarer07's Avatar
$frontend->developer

Posts: 1,032
Name: Abel Mohler
Location: Asheville, North Carolina USA
Keep this thread alive! Let's go for three pages!
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 06:12 PM Re: How do i can block/denied Firefox browser user to visit my website?
LadynRed's Avatar
Super Moderator

Posts: 6,553
Location: Tennessee
I find it interesting that the OP has not returned though. Obviously there's a general consensus that the idea is not a good one.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 06:33 PM Re: How do i can block/denied Firefox browser user to visit my website?
Ultra Talker

Posts: 250
Quote:
Obviously there's a general consensus that the idea is not a good one.
Idea is not good definitely. Users don't like blank pages. Some of them can report broken link if you have site submited in directories, etc.
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 05-29-2008, 06:45 PM Re: How do i can block/denied Firefox browser user to visit my website?
highanddry's Avatar
Close Talker

Posts: 876
Name: Jacob
Horrible idea! Optimize your site for multiple browsers ~!!~

It is sad but typically the longest threads with the most responses, feature authors who only post their initial question and probably never return.

Last edited by highanddry : 05-29-2008 at 06:47 PM.
highanddry is offline
Reply With Quote
View Public Profile
 
Old 05-29-2008, 10:10 PM Re: How do i can block/denied Firefox browser user to visit my website?
wayfarer07's Avatar
$frontend->developer

Posts: 1,032
Name: Abel Mohler
Location: Asheville, North Carolina USA
I think the longest threads are usually in response to easy questions. People love to jump onto bandwagons. Look at me! Wheee! I'm riding! Keep the thread alive. Ok... stopping... really...
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 05-30-2008, 01:59 PM Re: How do i can block/denied Firefox browser user to visit my website?
joder's Avatar
Flipotron

Posts: 6,443
Name: James
Location: In the ocean.
Quote:
Originally Posted by colbyt View Post
Makes me wonder what the installed base of computers world wide would be if all you saw when you turned them on was the flashing C:\>
Mine is not flashing but it says something different
james@apollo:james>

is that okay?

joder is offline
Reply With Quote
View Public Profile
 
Old 05-30-2008, 04:10 PM Re: How do i can block/denied Firefox browser user to visit my website?
tripy's Avatar
Fetchez la vache!

Posts: 2,055
Name: Thierry
Location: In the void
Quote:
Originally Posted by joder View Post
Mine is not flashing but it says something different
james@apollo:james>

is that okay?

Hmmm, I sense a linux box somewhere...
:-D
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile