how and which conditions i use if someone opening my site in mozilla firefox siite does not open
in think i can use the conditions in htacces and php but don't know the exact ?

    Since I don't advocate the discrimination of browsers that a user chooses, I'm going to refrain from suggesting any solutions to your question. However, I will note that any solution you do happen to find is probably going to rely on either of the following two things:

    1. Javascript, or

    2. The User-Agent HTTP header

    both of which can easily be manipulated/disabled in order to bypass your restrictions.

      why oh why would you want to do something like that???

        some one using some boot software for data posting using firefox

          sorry, no idea what you are talking about.

            there is a good likely hood that most of the users here use firefox, so unless you can explain why you want to block it, it's unlikely any one is willing to help you do it.

              well i don't care about this that is some online data entry site
              and they required that block Firefox
              and which code i use for block or redirect i don't understand the syntax of User-Agent

                realcoder wrote:

                and they required that block Firefox

                You should tell "them" that this is not possible (mostly because it isn't). If that isn't acceptable, then tell "them" that any solution you implement can be easily defeated by anyone who uses Firefox.

                realcoder wrote:

                which code i use for block or redirect i don't understand the syntax of User-Agent

                The "syntax" of the User-Agent header is likely browser-dependent (e.g. while most user-agent strings follow a similar pattern, there are slight variations for each browser, each version of that browser, different O/S's, etc. etc.). All you'd have to do is search the web for some common patterns of user-agent strings that Firefox uses.

                Again, however, even if you were able to generate a pattern that matched all the different user-agent strings Firefox might use, this string can easily be altered by the user using some very simple Firefox add-ons.

                  what about this if i use it in every page where i don't want to people use sftware i try this looking not bad

                  if(preg_match('/Firefox/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: what i want");}

                    Okay, now try using that method with something like this installed (note how it already has over 6.5 million downloads - 35,000+ every week).

                      ZOMG! Next they'll be disallowing Lynx :-P

                      Opera, feeling picked on several years ago, has native code for masquerading as well. I'd be willing to hazard a guess, or perhaps even a bet, that restricting access to sites based on the "brand" of browser they're using is NEVER going to be very effective ... as long, anyway, as the HTTP protocol is an open standard; I suppose one might imitate M$'s errant attempts to do such things with ActiveX and the like ... but that didn't turn out real well, methinks.

                        In fact, I believe you can change the user agent on firefox via the "about:config" URL, though it's easier with one of the plug-ins. 🙂

                          Write a Reply...