Nginx movie hotlink protection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Supaflyz
    Confirmed User
    • May 2005
    • 151

    #1

    Nginx movie hotlink protection

    Anyone know how to protect flv movies from being hotlinked when using nginx?
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    Code:
    location ~* ^.+\.(gif|jpg|mpg|mp3|mpeg|avi|flv)$ {
           valid_referers none blocked domain.com [url]www.domain.com;[/url]
           if ($invalid_referer) {
              return   403;
           }
        }
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    Comment

    Working...