A
A
aramtop2019-07-25 22:28:00
Apache HTTP Server
aramtop, 2019-07-25 22:28:00

How to deny access from a specific domain via .htaccess?

Help compose an htaccess file, if a person enters the sitecook.ru domain, then he is allowed, and if from the left domain, which is simply tied to the server's IP, do not give access. Need it through htaccess, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2019-07-25
@politon

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://sitecook.ru/.*
RewriteRule ^/* [NC,F]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question