map $http_user_agent $baduseragents { default 0; "~Trident/[1-7]\." 1; "~Chrome/(([1-9]{1})|([0-7]{1}[0-9]{1})|(7[0-9]{1}))\." 1; "~YaBrowser/(([1-9]{1})|([1-9]{1}[0-8]{1}))\." 1; "~Firefox/(([1-9]{1})|([0-7]{1}[0-9]{1})|(8[0-9]{1}))\." 1; "~EdgA?/(([1-9]{1})|([0-7]{1}[0-9]{1})|(8[0-6]{1}))\." 1; "~Version/(([1-9]{1})|([1-9]{1}[0-1]{1}))\." 1; }