V
V
Valery Morozov2020-09-21 11:59:21
htaccess
Valery Morozov, 2020-09-21 11:59:21

Block requests in htaccess by line in URI?

There are a significant number of such host-loading requests that contain the string "forum" in the URI. What is the best way to block them in htaccess?

podolsk.example.com 5.188.210.18 - - [21/Sep/2020:08:45:25 +0300] "GET /forum/forum10/topic3/messages/ HTTP/1.0" 301 337 " podolsk.example.com/forum /forum10/topic3/messages " "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 OPR/55.0.2994.44" 6563 3333:3333
example.com 5.188.210.18 - - [21/Sep/2020:08:45:25 +0300] "GET /forum/forum10/topic3/messages/ HTTP/1.1" 404 11849 " https://example.com/forum/forum10/ topic3/messages/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 OPR/55.0.2994.44" 89244 56666:19999

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question