Browser User Agent Block
-
Hi Wordfence team,
I’m trying to block a specific user agent of someone who is manually scraping my database, in the hopes not to prevent legitimate users from my site.
What precisely is the syntax to use in the Browser User Agent custom pattern field?
I want to block the following user agent (changed numbers due to GDPR)Mozilla/6.0 (Windows NT 10.0; Win63; x64) AppleWebKit/523.31 (KHTML, like Gecko) Chrome/75.1.3454.96 Safari/512.24 OPR/12.0.3347.58
Placing this between asterisks doesn’t work. I just want to ban this entire user agent and not every user agent that contains one of these terms..
I tried this
*OPR/12.0.3347.58
*Safari/512.24*
*Mozilla/6.0 (Windows NT 10.0; Win63; x64) AppleWebKit/523.31 (KHTML, like Gecko) Chrome/75.1.3454.96 Safari/512.24 OPR/12.0.3347.58*
*Mozilla/6.0 (Windows NT 10.0; Win63; x64) AppleWebKit/523.31 (KHTML, like Gecko) Chrome/75.1.3454.96 Safari/512.24 OPR/12.0.3347.58etc.
Maybe I need to escape this string?Hopefully you can help me out!
Thanks!
The topic ‘Browser User Agent Block’ is closed to new replies.