how to block direct link?
I have files subtitles want to block direct link and access. But this referrer block access to my domain too
location ~\.(vtt|srt|txt)$ {
allow localhost;
deny all;
return 404;
}
location ~ \.vtt {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.vtt)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
Thanks