RewriteEngine On
RewriteCond %{QUERY_STRING} ^mdrv=
RewriteRule ^ - [F,L]https://stackoverflow.com/questions/71386719/block-visits-that-uses-a-strange-parameter-mdrv
This request illustrates a client accessing the specified IP address (167.99.114.223) and domain (www.example.com) at the timestamp [12/Oct/2023:13:03:44 +0000].
The request is a “GET” method for the resource “/product/prd1235/” with the parameter “?mdrv=www.example.com” under HTTP/2.0 protocol. The response status is “499” with a response size of “0”.
https://dieutek.com/knowledge-hub/wordpress/the-data-scraping/
Cloudflare
Create custom rules in Security > WAF > Custom rules.
If incoming requests match:
Query String contains "mdrv="
Then
Block or Managed Challenge