Does anyone know a good way I can keep people from leeching files from a specific folder? I tried it with an .htaccess, but I'm still able to hot link content from one site to another.... any suggestions?
What you want to do is verify that the HTTP_REFERER is on the same domain from which the images (content) is being requested. You can do this with any web server. The configuration to do this varies between webservers, so please refer to your docs. In Lighttpd you can do: # if referrer doesnt begin with http://www.example.org $HTTP["referer"] !~ "^http://www\.example\.org" { url.access-deny = ( ".jpg", ".jpeg", ".png" ) } Code (markup):
That's amazing dude, thanks for that... but quick question... Do you think I could add more then just 1 domain to "ALLOW" for leeching?
Sure you can. In the case of the example above you can use the '|' (or operator) in regex to check for another domain. But as I said before every webserver is going to have different mechanisms to do this, so please check your webserver docs.
Since it's a virgin server that is running some files that I don't want leeched, I'm installing Lighthttpd, so I can just plug in the code you gave me... but seriously bro, I really appreciate your professionalism and help with this... now my bandwidth shall remain mine