To protect a single file:
UrlToolkit {
ToolkitID = block_hotlink
Match !/script/my_flash Return
Header Referer !www.mydomain.com DenyAccess
}
VirtualHost {
...
UseToolkit = block_hotlink
}
To protect multiple files:
UrlToolkit {
ToolkitID = check_referer
Header Referer !www.mydomain.com DenyAccess
}
UrlToolkit {
ToolkitID = block_hotlink
Match /script/my_flash Call check_referer
Match /img/image.jpg Call check_referer
Match /js/script.js Call check_referer
...
}
VirtualHost {
...
UseToolkit = block_hotlink
}