search engine - Blocking user agents in nginx -
i have learned way of blocking bots in nginx having if
statement in configuration file disallows access relevant user agents, i.e.,
within server
context, typing like:
if ($http_user_agent ~* somebotuseragentstring) { return 403 }
my question happens when (maliscious?) bot tries hide identity using user agent string seems regular browser user agent string, e.g.
mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, gecko) chrome/58.0.3029.81 safari/537.36
is realistic scenario?
Comments
Post a Comment