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.