GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Nginx movie hotlink protection (https://gfy.com/showthread.php?t=880658)

Supaflyz 01-10-2009 05:21 AM

Nginx movie hotlink protection
 
Anyone know how to protect flv movies from being hotlinked when using nginx?

fris 01-10-2009 09:04 AM

Code:

location ~* ^.+\.(gif|jpg|mpg|mp3|mpeg|avi|flv)$ {
      valid_referers none blocked domain.com www.domain.com;
      if ($invalid_referer) {
          return  403;
      }
    }



All times are GMT -7. The time now is 04:33 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc