.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: 14,686   +487

    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: 182

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

Similar Topics

Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...

Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.