How to Test if site is accessible from certain browser version

0

using rules in .htaccess I am attempting to block access to sites hosted on my server from traffic using a specific browser version (firefox 27.0).

Is there any way to test if I have .htaccess setup correctly to block visitors using this browser other than perhaps trying to locate and install this version of Firefox?

Can it be done through a php program? through Linux command line?

psvj

Posted 2015-04-21T20:23:58.393

Reputation: 217

Each of the major browsers allow you to customize the User-Agent string: http://www.howtogeek.com/113439/how-to-change-your-browsers-user-agent-without-installing-any-extensions/

– heavyd – 2015-04-21T20:34:38.653

1Why would you want to do that? Note it's easy to get around such blocks by changing the User-Agent string as per @heavyd's comment. – DavidPostill – 2015-04-21T20:57:13.550

thanks, i am aware that is is easy to get around, but there is a bot clicking on my adsense ads which only uses that specific version of firefox, for whatever reason. – psvj – 2015-04-21T23:05:54.397

Answers

1

There is a Chrome extension that will allow you to imitate different user agents (including Firefox 27).

https://chrome.google.com/webstore/detail/user-agent-switcher/lkmofgnohbedopheiphabfhfjgkhfcgf?hl=en-US

Follow these steps:

enter image description here

enter image description here

enter image description here

Copy the user-agent string in this textbox... enter image description here

...reopen the extension and paste that user-agent string into this textbox; then click change. enter image description here

threed

Posted 2015-04-21T20:23:58.393

Reputation: 108