Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker
 Helicon Tech : HotlinkBlocker
Subject Topic: HotlinkBlocker, JavaScript and ColdFusion Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jvh1701
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 3
Posted: 27 July 2010 at 8:28am | IP Logged Quote jvh1701

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 View jvh1701's Profile Search for other posts by jvh1701
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 27 July 2010 at 9:19am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
jvh1701
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 3
Posted: 27 July 2010 at 9:35am | IP Logged Quote jvh1701

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 View jvh1701's Profile Search for other posts by jvh1701
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 28 July 2010 at 3:52am | IP Logged Quote Anton

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

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
jvh1701
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 3
Posted: 28 July 2010 at 5:51am | IP Logged Quote jvh1701

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 View jvh1701's Profile Search for other posts by jvh1701
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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