Results 1 to 3 of 3
  1. #1
    -Shay- is offline Public Member
    Join Date
    November 2012
    Posts
    3,060
    Thanks
    12,189
    Thanked 3,159 Times in 1,693 Posts

    Default block old versions of firefox with htaccess?

    Is there any way to block older versions of firefox via htaccess? In reviewing my logs, we seem to be taking on a lot of "fire" with firefox 40.1. I think that if I'm able to block that particular browser, a lot of problems would be solved.

    Anyone know how exactly to do this?

  2. #2
    dfiocch's Avatar
    dfiocch is offline Private Member
    Join Date
    September 2006
    Posts
    878
    Thanks
    789
    Thanked 567 Times in 350 Posts

    Default

    You can block them through User Agents detection. Something similar:

    RewriteCond %{HTTP_USER_AGENT} ^.*Firefox/40.1*$
    RewriteRule .* - [L]
    RewriteRule ^.*$ - [F,L]


    I think you would test this block, so you could create a redirection on a "go away page". Just change the last line (RewriteRule ^.*$ - [F,L]) as something similar:

    RewriteRule .* http://mydomain.com/nooldffxthanks.html [R,L]

    Hope this can help.

  3. The Following 2 Users Say Thank You to dfiocch For This Useful Post:

    -Shay- (9 January 2017), suffolkpoker (9 January 2017)

  4. #3
    -Shay- is offline Public Member
    Join Date
    November 2012
    Posts
    3,060
    Thanks
    12,189
    Thanked 3,159 Times in 1,693 Posts

    Default

    Thank you. I will give this a try and report back.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •