-
9 January 2017, 9:26 am
#1
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?
-
-
9 January 2017, 9:43 am
#2
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.
-
The Following 2 Users Say Thank You to dfiocch For This Useful Post:
-Shay- (9 January 2017), suffolkpoker (9 January 2017)
-
9 January 2017, 10:28 am
#3
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
-
Forum Rules