htaccess to prevent hotlinking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • B40
    Confirmed User
    • Jul 2001
    • 7020

    #1

    htaccess to prevent hotlinking

    Anyone have it?

    ------------------
    Cold Sex Partnership - Free Content - 60%
  • m0rph3us
    Confirmed User
    • Mar 2001
    • 2033

    #2
    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://www.alloweddomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http://216.111.111.121/ [NC]
    RewriteRule /* http://www.domainorpagetoberedirectedhotlinkers.com [R,L]

    This prevents all type of hotlinking, even HTML pages...you might wanna modify it to only prevent images and videos like so:

    RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://sponsorusually.com
    <font size="2" face="Tahoma"><a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Get paid $25 per signup</a> listing over <a href="http://galleries.18blowjobs.com/hosted.html" target="_blank">100 free hosted video galleries</a> - <a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Check it</a> ยป </font>

    Comment

    • B40
      Confirmed User
      • Jul 2001
      • 7020

      #3
      hmm...didnt quite understand that..

      ------------------
      Cold Sex Partnership - Free Content - 60%

      Comment

      • X-raid
        Confirmed User
        • Jul 2001
        • 328

        #4
        Put the code in htaccess.txt and upload to the server, rename to htaccess and your done i think... worked for me!
        I can kill you, so fuck off!

        Comment

        • B40
          Confirmed User
          • Jul 2001
          • 7020

          #5
          I know how to use the htaccess part, so I just cut and copy that code?

          I know I have to change the URL's, but what's that stuff about hotlinking HTML pages?

          Comment

          • Chris R
            Confirmed User
            • May 2001
            • 1151

            #6
            don't forget to put the period in front:

            .htaccess


            Comment

            • X-raid
              Confirmed User
              • Jul 2001
              • 328

              #7
              Aa! thats right, you need to rename it to .htaccess
              sorry :-/
              I can kill you, so fuck off!

              Comment

              • B40
                Confirmed User
                • Jul 2001
                • 7020

                #8
                So I just add this?

                AuthUserFile /dev/null
                AuthGroupFile /dev/null
                RewriteEngine On
                RewriteCond %{HTTP_REFERER} !^http://www.alloweddomain.com/ [NC]
                RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/ [NC]
                RewriteCond %{HTTP_REFERER} !^http://216.111.111.121/ [NC]
                RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://sponsorusually.com


                What do I replace the "alloweddomain.com" to? And the "216.111.111.121"?

                ------------------
                Cold Sex Partnership - Free Content - 60%

                Comment

                • X-raid
                  Confirmed User
                  • Jul 2001
                  • 328

                  #9
                  your url and ip ?
                  I can kill you, so fuck off!

                  Comment

                  • B40
                    Confirmed User
                    • Jul 2001
                    • 7020

                    #10
                    Ahhh...got ya...

                    and the sponsorusually?

                    Comment

                    • X-raid
                      Confirmed User
                      • Jul 2001
                      • 328

                      #11
                      hmm don't know, can it be the url that hotlinker will go to?
                      type in your sponsor or someting... well type your mainurl so you don't get any problems from sponsors or someting




                      [This message has been edited by X-raid (edited 08-02-2001).]
                      I can kill you, so fuck off!

                      Comment

                      • B40
                        Confirmed User
                        • Jul 2001
                        • 7020

                        #12
                        Ahhh got it. Thanks a lot X-Raid. Appreciate it.

                        ------------------
                        Cold Sex Partnership - Free Content - 60%

                        Comment

                        Working...