Results 1 to 2 of 2

Thread: Hotlinking Prevention

  1. #1
    I'm not gay; I'm British!
    Join Date
    Mar 2005
    Location
    Murrurundi, Australia
    Posts
    98

    Hotlinking Prevention

    Hi!

    I'm looking at an effective way of preventing hotlinking as I'm looking at starting a TGP site.

    I know you can prevent hotlinking by using .htaccess I think, by checking the referrer that the image is being called from your site.

    However, at the moment I have all my `media files' store in a directory outside my website. eg: website at: /public/site/ media is at /media/

    Then any of my sites can access the same images without having to upload them multiple times.

    Anyway is this an effective safeguard against hot-linking?

    Thanks
    Ernie


  2. #2
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    You can setup .htaccess so that you can block hotlinking from any external sites EXCEPT for sites you own

    I think we have an article on GWW somewhere that will let you see an example .htaccess file with that type of setup too

    Regards,

    Lee


Posting Permissions

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