htaccess to block requests by string with WordPress in subdirectory
-
We’re getting thousands of requests for the same page with extra URLs added on, eg:
"GET /news/2023/07/22/reality-setting-in-[…]/print//%22https://www.re[…]//%22https://www.re[…]//%22[…]/%22 HTTP/1.1"The requests are distributed (during 15 minutes yesterday morning they came from ~2000 different IPs), so it would seem an easy thing to block requests containing “/print//” with:
RewriteRule /print// - [F]in htaccess, but it’s not working. The WordPress module is in the “news” subdirectory. I tried the command in the root htaccess file and at the top and bottom of the subdirectory htaccess file (which contains code for Wordfence, Supercache, and WordPress itself (in that order).
What am I missing?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.