Signing links manually

When using LINK protection method you may sign links manually in the cases when HotlinkBlocker cannot do this automatically. For example if the link is coded into client side JavaScript or in some non-HTML media HotlinkBlocker will not sign links there.

But HotlinkBlocker adds valid link signature to every request as a value of HTTP header X-HotlinkBlocker-Signature. Then you may access it serverside as server variable HTTP_X_HOTLINKBLOCKER_SIGNATURE. Simply add value of this variable to the links just as you add there xxxxxxxxxxxxxxxx/ templates.

Here is example code for ASP:

<IMG src="/images/<%=Request.ServerVariables("HTTP_X_HOTLINKBLOCKER_SIGNATURE")%>/picture.gif"/>


© 2002 - 2007 Helicon Tech. All rights reserved.