Results 1 to 8 of 8

Thread: I need to prevent hotlinking or deeplinking.

  1. #1
    Hamilton Steele
    Guest

    I need to prevent hotlinking or deeplinking.

    Ok,
    I don't really understand such things as .htpaccess

    (wife tried to explain it to me but Im lost.)

    The big thing what I'm trying to do is prevent escort review sites from being able to link to my page.

    How do I do this?

    Thanks
    Hammy


  2. #2
    Words paint the real picture gaystoryman's Avatar
    Join Date
    Apr 2004
    Location
    western canada
    Posts
    2,151
    do you mean link to the page itself or to images on the page?

    I'd not be upset if they were linking to the page itself, that'll help your SERP (search engine ranking position) but if images that's different.

    for images to not be hotlinked you put this code into a text file called htaccess... you upload it in ASCHI and you make sure it is called simple

    .htaccess

    (make sure you have the dot before the word)

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?your site name.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteRule \.(jpe?g|gif|bmp|png|pdf)$ - [F]
    that's really all there is to it.

    hth
    Ian
    Webmasters: Add Custom Stories To Your Sites Custom Gay Stories

    My Blogs Gay Talk, Free Gay Fiction, Erotic Fiction Online


  3. #3
    lottatoys
    Guest
    Are the other sites linking to your images? or just linking to your pages?
    (Also what is the site written in?)

    in php (and I am sure asp) you can check the referrer.. and if the visitor
    came from a page not on your domain (or google, yahoo, etc).. you can redirect them to the home page.. make 'em work for it..

    If this is the case.. let me know.. I will post some code..


  4. #4
    chick with a bass basschick's Avatar
    Join Date
    Nov 2003
    Posts
    7,922
    one quick comment on gaystoryman's .htaccess code...

    DOUBLE check to make sure it is called .htaccess in your server rather than htaccess.txt which notepad will do. just rename it on the server side and you're ready to go


  5. #5
    Hamilton Steele
    Guest
    Wow!!!
    You guys are absolute gurus!!!

    I wish.
    I had a 1/10th of your talent because I would have my website done. Instead of just a page or two I'm working on for escorting.

    I mean this sincerly because I'm quickly becoming an old "fart" with out-dated computer skills.


  6. #6
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    if you have problems with your htaccess setup, get in touch with your webhost, they should help you with these things!

    cheers,
    Luke


  7. #7
    Jesus was never married, ran around with twelve guys, and was betrayed by a kiss from another guy. Lippi's Avatar
    Join Date
    Oct 2005
    Location
    Amsterdam
    Posts
    304

    .htaccess tools

    This link will help you! It will generate the .htaccess file for you.
    Very helpfull tool!

    http://www.htaccesstools.com/hotlink-protection/


  8. #8
    Hamilton Steele
    Guest
    Let me start by saying that you guys rule! I truely appreciate the help.
    And if I can be so bold as to ask one more question.

    How do I disable right click? I want to keep people from being able to steal my photos.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •