H
H
HunterT2022-02-27 06:24:09
Apache HTTP Server
HunterT, 2022-02-27 06:24:09

.htaccess video view limit?

I have a .htaccess file with these codes

RewriteEngine On
RewriteCond %{HTTP_HOST} !^http://ireenamyha.myjino\.ru/ [NC,OR]
RewriteCond %{HTTP_HOST} !videovier\.php$
RewriteRule *.mp4$ - [L,F]

The idea is that this code should disable video viewing for all domains except ireenamyha.myjino.ru/videovier.php , but it doesn't work. Why??? Thank you right away for your help.

I have a file .htaccess with this code
RewriteEngine On
RewriteCond %{HTTP_HOST} !^http://ireenamyha.myjino\.ru/ [NC,OR]
RewriteCond %{HTTP_HOST} !videovier\.php$
RewriteRule *.mp4$ - [L,F]

In theory, this code should prohibit video viewing for all domains except ireenamyha.myjino.ru/videovier.php , but it doesn't work. Why??? Immediately thank you for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2022-02-27
@HunterT

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https?://ireenamyha\.myjino\.ru/videovier\.php
RewriteRule \.mp4$ - [F]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question