techneut wrote:
robert wrote:
It took some time but I found a way to prevent linking direct to *.mp3 extensions unless the domain is *pianosociety.com. Now all these site with links have dead links

That is good ! Though I wonder if it works, or maybe (more likely) I don't understand how it works.
Experiment: I click right mouse on New Recordings and do Save As. So now I own a local copy of new.html on my disk. I clear the browser cache, then
open that local file in my browser. All the direct links still work ! What am I missing ?
I wonder what happens if you run it from you local browser with the html file saved on your local disk. What does it look like? Something like
file://c:/somwhere/nowhere/pianosociety.com/new.html ? That would still be ok as the domain is *pianosociety.com which we allow (as in the code below (from /etc/lighttpd/lighttpd.conf):
Code:
# Hotlink prevention
# deny access for all bandwidth stealers
$HTTP["referer"] !~ "^(($|http?://(.*\.)?pianosociety\.com)|($|http?://(.*\.)?imslp\.org)|($|http?://(.*\.)?cloud4security\.com))" {
url.access-deny = ( ".jpg", ".jpeg", ".png", ".wmv", ".avi", ".mpeg", ".mpg", ".gif", ".mp3", ".mp4" )
}
(cloud4security.com is my test domain for things like hotlink protection, I have allowed imslp.org too)
I think you need to own a different domain and make a link to a recording on pianosociety to test it properly