HELP! Some idiots hotlinking my videos!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mightyjoe
    Confirmed User
    • Jun 2004
    • 1395

    #1

    HELP! Some idiots hotlinking my videos!

    My videos are my personal shots (no face) Now I uploaded on my server and streams to my 5 sites with this format: mysite.com/videos/001.mp4. I find out that there are site that are hotlinking my vides.

    Are there any chance to prevent my videos from hotlinking? My server is NGINX.
  • Brian mike
    #Alberta51
    • Oct 2014
    • 8735

    #2
    Originally posted by mightyjoe
    My videos are my personal shots (no face) Now I uploaded on my server and streams to my 5 sites with this format: mysite.com/videos/001.mp4. I find out that there are site that are hotlinking my vides.

    Are there any chance to prevent my videos from hotlinking? My server is NGINX.
    Find this on google/ youtube, hope this help:

    Tube - Cam - Escorts - Top List
    Menu Tab - Banner - Header Link - Blog Post
    DM me

    Comment

    • doeser
      Confirmed User
      • Jun 2001
      • 205

      #3
      Cloudflare..

      Comment

      • hornyasf
        Confirmed User
        • Jul 2021
        • 185

        #4
        That fucking sucks.... follow the tips above

        Comment

        • k0nr4d
          Confirmed User
          • Aug 2006
          • 9231

          #5
          RewriteEngine on
          RewriteCond %{HTTP_REFERER} !^$
          RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
          RewriteRule \.(jpg|jpeg|mp4)$ - [F]

          Or you can rewrite it to some fucked up disgusting video (1 man 1 jar or something) and display that for them instead, or like a video that just displays your domain or something.

          RewriteEngine on
          RewriteCond %{HTTP_REFERER} !^$
          RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
          RewriteRule \.(mp4)$ /fuckedupvid.mp4 [R,L]
          Mechanical Bunny Media
          Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

          Comment

          • bugmenot4real
            Confirmed User
            • Jun 2013
            • 184

            #6
            Originally posted by k0nr4d
            RewriteEngine on
            RewriteCond %{HTTP_REFERER} !^$
            RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
            RewriteRule \.(jpg|jpeg|mp4)$ - [F]

            Or you can rewrite it to some fucked up disgusting video (1 man 1 jar or something) and display that for them instead, or like a video that just displays your domain or something.

            RewriteEngine on
            RewriteCond %{HTTP_REFERER} !^$
            RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
            RewriteRule \.(mp4)$ /fuckedupvid.mp4 [R,L]
            can you give a version for without www with first one?
            ty

            Comment

            • hornyasf
              Confirmed User
              • Jul 2021
              • 185

              #7
              Originally posted by k0nr4d
              RewriteEngine on
              RewriteCond %{HTTP_REFERER} !^$
              RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
              RewriteRule \.(jpg|jpeg|mp4)$ - [F]

              Or you can rewrite it to some fucked up disgusting video (1 man 1 jar or something) and display that for them instead, or like a video that just displays your domain or something.

              RewriteEngine on
              RewriteCond %{HTTP_REFERER} !^$
              RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
              RewriteRule \.(mp4)$ /fuckedupvid.mp4 [R,L]
              Actually this is the best approach - didnt even think of this

              Comment

              • ZTT
                Confirmed User
                • Apr 2019
                • 659

                #8
                I always thought that kind of hotlink protection only worked for images, not video. In any case OP is using Nginx, and that code is for Apache.
                __________________

                Comment

                • Black All Through
                  Confirmed User
                  • Oct 2010
                  • 2078

                  #9
                  Originally posted by k0nr4d
                  RewriteEngine on
                  RewriteCond %{HTTP_REFERER} !^$
                  RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
                  RewriteRule \.(jpg|jpeg|mp4)$ - [F]

                  Or you can rewrite it to some fucked up disgusting video (1 man 1 jar or something) and display that for them instead, or like a video that just displays your domain or something.

                  RewriteEngine on
                  RewriteCond %{HTTP_REFERER} !^$
                  RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
                  RewriteRule \.(mp4)$ /fuckedupvid.mp4 [R,L]
                  Best way to go!
                  I want to buy contextual links on quality blogs
                  For both Adult and mainstream niche - Small to massive packages

                  Comment

                  • mightyjoe
                    Confirmed User
                    • Jun 2004
                    • 1395

                    #10
                    Originally posted by k0nr4d
                    RewriteEngine on
                    RewriteCond %{HTTP_REFERER} !^$
                    RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
                    RewriteRule \.(jpg|jpeg|mp4)$ - [F]

                    Or you can rewrite it to some fucked up disgusting video (1 man 1 jar or something) and display that for them instead, or like a video that just displays your domain or something.

                    RewriteEngine on
                    RewriteCond %{HTTP_REFERER} !^$
                    RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC]
                    RewriteRule \.(mp4)$ /fuckedupvid.mp4 [R,L]
                    Where do I put this? It is work for nginx? I stream the videos for 5 domains from the domain it hosted the videos. So the domain that hosted the videos is not stteaming the videos.

                    Comment

                    • mightyjoe
                      Confirmed User
                      • Jun 2004
                      • 1395

                      #11
                      found this for nginx, but it is not working. also i have 5 domains

                      location ~* .(mp4)$ {

                      valid_referers none server_names domain1.com www.domain2.com;

                      }

                      if ($invalid_referer) {

                      return 403;

                      }

                      Comment

                      Working...