How to block users from viewing my site?

Discussion in 'Web Design and Development' started by amacgenius, Aug 22, 2006.

  1. amacgenius macrumors 68000

    amacgenius

    Joined:
    Aug 3, 2005
    Location:
    Buffalo, NY
    #1
    This was a stupid idea, mods move/close this thread.
     
  2. deepy macrumors regular

    Joined:
    Jun 28, 2006
    #2

    Sounds like you need to do some googling for javascript browser detection unless you want a server side scripting solution like PHP.

    If you do want to edit your PHP script then use the variable $_SERVER['HTTP_USER_AGENT']; which contains a string of the browser type. Then an If statement on "if the browser is firefox do this, else do that".

    Anyway, whats wrong with firefox? why block it? If your website is up to xhtml and css standards then your site will work with any browser (in theory) but atleast definitely in any major browser.
     
  3. amacgenius thread starter macrumors 68000

    amacgenius

    Joined:
    Aug 3, 2005
    Location:
    Buffalo, NY
    #3
    Turned out to be my fault I forgot to add another
    Code:
    -->
    To my sidebar.php file.

    Nevermind this thread, eventhough I still hate FireFox ;).
     
  4. deepy macrumors regular

    Joined:
    Jun 28, 2006
    #4
    firefox rules wooop woooooop firefox rules woooooop wooooooop lol

    oi.....i like firefox!
     
  5. Lau Guest

    #5
    Why don't you like Firefox? I don't use it myself but I know it's really useful with all the developer stuff, and I thought it was good in that it got Windows users away from IE. I'm not having a go (especially as I don't personally use it) — just genuinely curious as to why you would want to block Firefox users.
     
  6. exabytes18 macrumors 6502

    Joined:
    Jun 14, 2006
    Location:
    Suburb of Chicago
    #6
    IE is awful, terribly awful.

    Let's face it here, Firefox is far superior to IE. 1.) Pages load significantly faster in FF compared to IE. 2.) FF is far more standards compliant than IE.(Pages actually display properly in FF.) 3.) It's more secure!

    What do you have against Firefox?
     
  7. deepy macrumors regular

    Joined:
    Jun 28, 2006
    #7
    I agree - firefox was the solutions to all my IE problems (constantly getting adware and other rubbish).

    Anyway, even if you dont like firefix, dont block users from using your website just cos they got firefox! Thats just plain dumb lol.
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    What's weird is that I recently ran across something that IE handles better than Firefox. I have a hovering layer that looks like a "talk box" complete with pointer, which sits over top of a scrollable area. In Firefox, I am not always able to access parts of the scroll bar because it still thinks I am clicking on the overlay even though the area I'm clicking is transparent and shows through the scrollbar. When it actually worked as expected in IE, boy, was I surprised!
     
  9. cookie1105 macrumors 6502

    Joined:
    Mar 27, 2006
    Location:
    London, UK
    #9
    You are entitled to your opinions but why in this day and age you would choose to block a certain browser, I've no idea. Especially the most standards compliant browser out there. Just to show you how short-sighted you are being, if I was to block FF, I would be blocking 36% of visitors to my site.

    [​IMG]

    Grow up.
     
  10. ChicoWeb macrumors 65816

    ChicoWeb

    Joined:
    Aug 16, 2004
    Location:
    California
    #10
    Why not just create valid code and it will work on every browser. It's not the browsers fault, it's your coding abilities.

    BTW, Safari isn't the greatest to be honest. It's slowly declining because they based their benchmark against IE.
     
  11. deepy macrumors regular

    Joined:
    Jun 28, 2006
    #11
    When I make websites, and it doesnt look quite right in a specific major browser, I can spend hours and hours finding a solution that works the same way in them all. A part of last website I made seems to shift a couple of millimeters to the left on firefox than on IE - this really still annoys me! :mad:
     
  12. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #12
    Not necessarily. Just because you have valid HTML/XHTML code doesn't mean it will work in every browser because each browser supports valid code/standards to varying degrees.

    Why do you think Safari is slowly declining? It was the first officially-released browser to pass the Acid2 test.
     
  13. Kingsly macrumors 68040

    Kingsly

    #13
    Judging by the suggestions he put (safari/swift) he wants people to use WebKit based browsers.
     
  14. dornoforpyros macrumors 68040

    dornoforpyros

    Joined:
    Oct 19, 2004
    Location:
    Calgary, AB
    #14
    ooohh I'm angry teenager I hate firefox grrrrrrrr :rolleyes:
     
  15. exabytes18 macrumors 6502

    Joined:
    Jun 14, 2006
    Location:
    Suburb of Chicago
    #15
    I see, but what advantages do those types of browsers have over firefox? Swift is merely in the alpha stage of development. I'm interested in Swift, but all the links on their site are down. :(
     
  16. solvs macrumors 603

    solvs

    Joined:
    Jun 25, 2002
    Location:
    LaLaLand, CA
    #16
    Wow, ok, good luck with the l337 stuff. Remind me never to visit your website.
     
  17. Kingsly macrumors 68040

    Kingsly

    #17
    I. HAVE. NO. IDEA. IT. MAKES. NO. SENCE. WHATSOEVER.

    Actually, apparently WebKit-based-safari is faster than firefox in every way... but thats according to Apple, and its their product, so, you know, the results could be skewed. I love safari personally.
    :D
     
  18. dunc85 macrumors regular

    Joined:
    Jul 23, 2006
    #18
    lol WTF, trying to save face by deleting the original post so that none of the replies make sense? Clever.
     
  19. Shadow macrumors 68000

    Shadow

    Joined:
    Feb 17, 2006
    Location:
    Keele, United Kingdom
    #19
    This month (so far) more people have visited my site on Mac than Windows! Take a took:[​IMG]
     

    Attached Files:

Share This Page