This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker (Forum Locked Forum Locked)
 Helicon Tech : HotlinkBlocker
Subject Topic: HotlinkBlocker, JavaScript and ColdFusion
Author
Message |
jvh1701
Newbie


Joined: 27 July 2010
Posts: 3
Posted: 27 July 2010 at 8:28am

I have a registered version of HotlinkBlocker on a site using ColdFusion, and want to protect videos that play in JW Player (JavaScript).

I am unable to figure out how to access the Custom HTTP Header HTTP_X_HOTLINKBLOCKER_SIGNATURE using ColdFusion.

Any suggestions?

Tried using ASP as well using the code provided in the documentation, and no value was returned.

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 27 July 2010 at 9:19am

You should use the same method ColdFusion uses to catch (any) server variables.
Unfortunately, I don't know ColdFusion syntax, so can't be more specific.

__________________
Regards,
Anton
Back to Top
 
jvh1701
Newbie


Joined: 27 July 2010
Posts: 3
Posted: 27 July 2010 at 9:35am

Unfortunately, I did.  Even tried using classic ASP, which also does not return any HTML header for HotlinkBlocker.

Perhaps the issue is with IIS?

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 28 July 2010 at 3:52am

Please provide the HotlinkBlocker config and the ASP method you are trying to use.

__________________
Regards,
Anton
Back to Top
 
jvh1701
Newbie


Joined: 27 July 2010
Posts: 3
Posted: 28 July 2010 at 5:51am

Anton, thanks for your help.

It turns out the issue was tied to the use of a subdomain.  I have resolved the issue.  FYI The proper code to retrieve the HTTP header using ColdFusion is...

#CGI.HTTP_X_HOTLINKBLOCKER_SIGNATURE#

Usage example:

<IMG src="/images/<cfoutput>#CGI.HTTP_X_HOTLINKBLOCKER_SIGNATURE#</cfoutput>/picture.gif"/>

Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum