Blocking in Wordfence gives you a way to block an IP address, specific countries, and custom patterns.
From: Blocking aggressive Chinese crawlers/scrapers/bots
# END WordPress
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_USER_AGENT} Custo|MJ12bot|PetalBot [NC]
RewriteRule ^ – [F,L]
</IfModule>
# Wordfence WAF
i.s.f.
# END WordPress
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 2021-05-07
RewriteCond %{HTTP_USER_AGENT} petalbot [NC]
RewriteRule .* – [F,L]
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 18:18
# Wordfence WAF