This helped for me, thanks to help on here - thanks to @philmckrackon - at the end of .htaccess
BrowserMatchNoCase "Bytedance" bad_bot
BrowserMatchNoCase "Bytespider" bad_bot
BrowserMatchNoCase "Baiduspider" bad_bot
BrowserMatchNoCase "BIDUBrowser" bad_bot
Order Deny,Allow
Deny from...