HTTP 1.0 has security weakness related to session hijacking. Is there a way to disable it by using the mod_rewrite module?
Asked
Active
Viewed 6,404 times
2 Answers
5
You may try this mod_rewrite, this worked for me. Here the server would try to respond with a 403-Forbidden response code.
RewriteCond %{THE_REQUEST} HTTP/1\.0$
RewriteCond %{REQUEST_URI} !^/path-to-your-custom-403-error-page\.html$
RewriteRule .? - [F]
4
- Ensure to load mod_rewrite module in httpd.conf file
Enable RewriteEngine directive as following and add Rewrite condition to allow only HTTP 1.1
RewriteEngine On RewriteCond %{THE_REQUEST} !HTTP/1.1$ RewriteRule .* - [F]
Kemia rabada
- 72