.htaccess file and hot linking

By TheJediSlayer
Feb 20, 2008
  1. Hello, I'm trying to find out how to make it so that my .htaccess file only blocks certain directories from getting hot linked. I don't wish to block all directories from displaying images outside of my website, just certain directories. If anyone could help, I would appreciate it.

  2. jobeard

    jobeard TS Ambassador Posts: 9,348   +622

    EACH directory has its own .htaccess file

    see this description

    the bigger issue is getting the webserver to first see it and then to honor it.
    If the web hosting company has not enabled the feature, just forget it and cry in your beer --
    choose a better one next time. if it is enabled, the upload and set the perms to x600.
    Now you need the webserver to be recycled (stop, immediately restarted) to
    find the file (as this file is read only when the server starts and is read into the server and cached).
  3. TheJediSlayer

    TheJediSlayer TS Rookie Topic Starter Posts: 164

    Thank you very much. This definitely helps out a lot.
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...