also @ TechSpot: OCZ Vertex 450 SSD Review

.htaccess file and hot linking

Discussion in 'Virus and Malware Removal' started by TheJediSlayer, Feb 20, 2008.

  1. TheJediSlayer Newcomer, in training Posts: 182

    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.

    Tyler
  2. jobeard TS Ambassador Posts: 12,227   +121

    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 Newcomer, in training Posts: 182

    Thank you very much. This definitely helps out a lot.