Skip to content

Wordpress plugin that rewrite that hashes all video urls to prevent hot linking. Also including templates for HestiaCP to set it up very easy

Notifications You must be signed in to change notification settings

jaapmarcus/nginx-secure-link

Repository files navigation

nginx-secure-link

Changes to nginx / sites config

Add the following code to the server -> location of the domain config of Nginx

location ~* ^.+\.(mp4|webm|mp3|ogg|ogv)$ {
     proxy_cache    off;
         secure_link $arg_md5,$arg_expires;
         secure_link_md5 "$secure_link_expires$uri secret-pass";
         if ($secure_link = "") {
            return 403; 
         }
         if ($secure_link = "0") {
            return 403; 
         }
     root           %sdocroot%;
         access_log     /var/log/%web_system%/domains/%domain%.log combined;
         access_log     /var/log/%web_system%/domains/%domain%.bytes bytes;
    }

About

Wordpress plugin that rewrite that hashes all video urls to prevent hot linking. Also including templates for HestiaCP to set it up very easy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published