code help needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DVTimes
    xxx
    • Jun 2003
    • 31658

    #1

    code help needed

    How simple is it to set up hotlink prevention?

    I am only wanting to add the code to one page but not bothered if the rest of the site has some sort of hotlink stopper on it.

    Is it a simple code or do I need to get hold of a fancy script?
    XXX
  • DVTimes
    xxx
    • Jun 2003
    • 31658

    #2
    bump
    XXX

    Comment

    • skinnay
      Confirmed User
      • Apr 2004
      • 2274

      #3
      assuming you're using apache, you just need to install mod_rewrite and use .htaccess to do the job. just look on google for an example
      Make Real Green with ORGANIC SEO | Blog post exchange | Non-index page trades | A-B C-D Trades [icq: 194-215-962] [mail: [email protected]]

      Comment

      • DVTimes
        xxx
        • Jun 2003
        • 31658

        #4
        Originally posted by skinnay
        assuming you're using apache, you just need to install mod_rewrite and use .htaccess to do the job. just look on google for an example
        cool

        I will test it.
        XXX

        Comment

        • DVTimes
          xxx
          • Jun 2003
          • 31658

          #5
          In case others want the code, this is it:

          RewriteEngine on
          RewriteCond %{HTTP_REFERER} !^$
          RewriteCond %{HTTP_REFERER} !^http://(www\.)?dvtimes.com/.*$ [NC]
          RewriteRule \.(gif|jpg)$ http://www.dvtimes.com/nasty.gif [R,L]

          Then save as .htaccess

          Chance dvtimes to your site name, and add your own pic, save as nasty.gif
          XXX

          Comment

          • dimonka
            Confirmed User
            • Oct 2002
            • 477

            #6
            I see you already got your assistance...

            Find out what REBILLS are!

            Comment

            • kaktusan
              Confirmed User
              • Mar 2003
              • 334

              #7
              Yea these .htaccess things work...but I suppose they work only for images... how about movies? I think you must have something special for the movies....
              If you need more help request it
              We will help


              Superior Blogging Scripts | Porn Blog Space - not just another free blog hosting!

              Comment

              • fris
                Too lazy to set a custom title
                • Aug 2002
                • 55679

                #8
                movies is different, because it sends different referals everytime. can send a blank refer, can send a WMP refer. can send a website refer. i will give some code.

                http://www.videodump.com/htaccess.txt

                that allows linking locally so files have to be loaded from your server only
                Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                Comment

                • DVTimes
                  xxx
                  • Jun 2003
                  • 31658

                  #9
                  cool

                  .
                  XXX

                  Comment

                  Working...