As the title says, was curious if it's possible and how? Thanks! :)
1 Answer
I search a bit and wrote this in .htaccess (not sure if it's 100% right but seems to work)
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} !Firefox* [NC] RewriteRule ^ - [F,L]
-
There are various browser detection techniques based on the specified user-agent, but note that the user agent can be arbitrary modified by the user/app, is not a secure detection. Oct 13, 2015 at 9:00
-
It is a trivial task to indicate the user agent is Firefox using pretty much any major browser .– RamhoundOct 13, 2015 at 10:15
netcat
that are just TCP clients and I do the HTTP myself). You can add user-agent header filtering, but anybody who wants to can spoof Firefox in the UA header and bypass that. You might be able to make it so any browser except Firefox will fail to render the page correctly, but it would still be possible to read the content in the page source.