In our case nginx will create two configurations - first one will be used if User-Agent string matches the regex, the second one will be used if it doesn't. I highly recommend not to use the if construction here.

User Agents - Everything You Need To Know 14.43 User-Agent. The User-Agent request-header field contains information about the user agent originating the request. This is for statistical purposes, the tracing of protocol violations, and automated recognition of user agents for the sake of tailoring responses to avoid particular user agent limitations. User-Agent - HTTP | MDN For more on Firefox- and Gecko-based user agent strings, see the Firefox user agent string reference. The UA string of Firefox is broken down into 4 components: Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion. Mozilla/5.0 is the general token that says the browser is Mozilla-compatible. For historical reasons

Jun 04, 2020

Web Proxies, User-Agent Strings, and Malware Detection

I think they track the application with their user agent. So installing a proxy on my laptop and modifies all user agent to a single one may solve my problem. So please suggest me a good proxy software for the problem. I tried CNTLM, but it didnt modify the user agent, eventhough it has an option for that.

McAfee Support Community - Web Gateway: Understanding User