Answer the question
In order to leave comments, you need to log in
How to close direct access to the site?
Hello, how can I close the direct entrance to the site? So that when you go directly to the site, it gives an error (skrn1), And when you go through the search engine, everything works and is displayed.
Answer the question
In order to leave comments, you need to log in
Create .htaccess file containing:
RewriteEngine On
# block if request header X-SomeHeader doesn't exist
RewriteCond %{HTTP:X-SomeHeader} ^$
RewriteRule ^ - [F]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question