Answer the question
In order to leave comments, you need to log in
How to disable GET requests to index.php using .htaccess?
In the access.log of my server I constantly find requests of the following form:
GET site.ru/?page=Avtomati-na-realnie-dengi
Now I have banned all requests starting with the word "page" with the following construction:
#Блокируем ботов
RewriteEngine On
RewriteCond %{QUERY_STRING} page= [NC]
RewriteRule ^.*$ - [R=404,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question