Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.htaccess Redirect based on SSL Protocol

Following the POODLE SSL 3.0 exploit we are removing support for SSL 3.0 accross our servers. Ideally we would like to clearly let users on legacy clients know why they aren't able to access the site now.

We could redirect IE6 users to a help page automatically, but as a neater, cross client solution, is it possible to create a .htaccess directive to redirect clients based on them trying to negotiate a connection using the SSL 3.0 protocol?

like image 410
Karl Glennon Avatar asked Aug 29 '26 07:08

Karl Glennon


1 Answers

RewriteEngine On
RewriteCond %{SSL:SSL_PROTOCOL} ^SSLv3$
RewriteRule ^.*$ https://zmap.io/sslv3/ [L,R=302]

This redirects it to https://zmap.io/sslv3/ but you can change the URL to your own help page.

like image 62
kums Avatar answered Sep 01 '26 06:09

kums



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!