<div dir="ltr">







<p class="">Hi All,</p>
<p class="">Been trying to block bots from accessing a URI that has a query_string "action=get_it", i tried below </p>
<p class=""><br></p>
<p class="">        location ~* \?(action=get_it)$ {</p>
<p class="">                if ( $http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider)) {</p>
<p class="">                        return 404;</p>
<p class="">                        break;</p>
<p class="">                }</p>
<p class="">         }</p>
<p class="">i just learned that location does not match query string, if i do the is_arg i cant do nested if, anyone able to do this before?</p>
<p class="">TIA.</p>
<p class="">Regards,</p>
<p class="">Ron </p></div>