D
D
Dmitry2020-04-27 18:41:54
Apache HTTP Server
Dmitry, 2020-04-27 18:41:54

How to block bots in Apache via httpd.conf?

Tell me how to use the httpd.conf file to block access to the content of the bots list by user agents:
SemrushBot-SA
rogerbot
megaindex.com
etc

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-04-28
@gusev

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} SemrushBot-SA|rogerbot|megaindex\.com
RewriteRule ^ - [F]

Add to desired<VirtualHost>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question