Home > Back-end >  How to block a user agent on wordpress
How to block a user agent on wordpress

Time:11-05

I want to block this user agent because it requests a lot of image data.

Tachiyomi Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/78.0 1985775847

I have a Wordpress website and I can edit .htaccess file

CodePudding user response:

You can easily block with .htaccess

In your case: ( Please put this in the very beginning of the .htaccess file )

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Tachiyomi [NC]
RewriteRule .* - [F,L]

In above Tachiyomi is user agent name, if you have different name just replace it.

  • Related