This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker
 Helicon Tech : HotlinkBlocker
Subject Topic: php usage inserts HTTP header mid-page (Topic Closed Topic Closed) Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
schmidtfjs
Newbie
Newbie


Joined: 26 June 2006
Online Status: Offline
Posts: 6
Posted: 26 June 2006 at 10:09pm | IP Logged  

When I run my PHP page without HLB installed, I get the following (works aok)...

<!doctype html public "-//W3C//DTD HTML 4.01//EN">

<html>

   <head>
      <title>Untitled</title>
      <meta http-equiv="generator" content="PHP Designer 2005" />
   </head>

   <body  text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<table width="80%" bgcolor="#C1C7F9">
<tr>
         <td>
<h1>Candidate File Access</h1>
<h3><p>From this page, you can log in and download any of the voter information files that have been prepared for you
by the Supervisor of Elections office in this County.  Access to this file download facility is restricted to authorized users as defined in Florida's Election Law, including (but not limited to) sections97.0585(1) and 101.62(3).</p></h3>
<h3>Welcome Johnny Mac.  Last access date: 2006-06-26 22:53:21</h3><form action="http://sunny.electionsfl.com/CandFileAccess.php" method="POST" enctype="application/x-www-form-urlencoded"><input type="hidden" name="FileUser" /><input type="submit" value="Log off" /></form>The following files are available for you to download.  Please select the file you wish to bring to your machine.<p><table border='1' bgcolor='#E0E3FC' width='100%'><td>File Description</td><td>File Date</td><td>Last Download</td></tr><tr><td>Test PDF file</td><td>2006-06-26<br>00:00:00</td ><td><table><tr><td>2006-06-26< ;br>22:53:27</td><td><form action="/CandFileAccess.php" method="POST" enctype="application/x-www-form-urlencoded"><input type="hidden" value="ERI" name="CountyID" /><input type="hidden" value="1" name="FileUser" /><input type="hidden" value="2005-01-01 00:00:01" name="AsOfDate" /><input type="hidden" value="ERI" name="Group" /><input type="hidden" value="1212" name="UserPassword" /><input type="hidden" value="001.PDF" name="FileToSend" />&nbsp&nbsp&nbsp&nbsp&nbsp<input type="submit" value="Download" onclick="window.open('candidate/001.PDF','_blank')" /></form></td></tr></table></t d></tr></td>
</tr>
</table>
     </body>
</html>

When I run my PHP page with HLB installed, I get the following (NOTE the excess HTTP header information toward bottom of page -- why???  Its interferring with the page's operation.

<!doctype html public "-//W3C//DTD HTML 4.01//EN">

<html>

   <head>
      <title>Untitled</title>
      <meta http-equiv="generator" content="PHP Designer 2005" />
   </head>

   <body  text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<table width="80%" bgcolor="#C1C7F9">
<tr>
         <td>
<h1>Candidate File Access</h1>
<h3><p>From this page, you can log in and download any of the voter information files that have been prepared for you
by the Supervisor of Elections office in this County.  Access to this file download facility is restricted to authorized users as defined in Florida's Election Law, including (but not limited to) sections97.0585(1) and 101.62(3).</p></h3>
<h3>Welcome Johnny Mac.  Last access date: 2006-06-26 22:54:36</h3><form action="http://sunny.electionsfl.com/CandFileAccess.php" method="POST" enctype="application/x-www-form-urlencoded"><input type="hidden" name="FileUser" /><input type="submit" value="Log off" /></form>The following files are available for you to download.  Please select the file you wish to bring to your machine.<p><table border='1' bgcolor='#E0E3FC' width='100%'><td>File Description</td><td>File Date</td><td>Last Download</td></tr><tr><td>Test PDF file</td><td>2006-06-26<br>00:00:00</td ><td><table><tr><td>2006-06-26< ;br>22:54:40</td><td><form action="/CandFileAccess.php" method="POST" enctype="application/x-www-form-urlencoded"><input type="hidden" value="ERI" name="CountyID" /><input type="hidden" value="1" name="FileUser" /><input type="hidden" value="2005-01-01 00:00:01" name="AsOfDate" /><input type="hidden" value="ERI" name="Group" /><input type="hidden" value="1212" name="UserPassword" /><input type="hidden" value="001.PDF" name="FileToSend" />&nbsp&nbsp&nbsp&nbsp&nbsp<input type="submit" value="Download" onclick="window.open('candidate/001.PDF','_blankHTTP/1.1 200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Date: Tue, 27 Jun 2006 02:54:40 GMT
Pragma: no-cache
Content-Type: text/html
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: PHP/4.4.0

')" /></form></td></tr></table></t d></tr></td>
</tr>
</table>
     </body>
</html>

What my HotLinBlocker.ini file has...

# HotlinkBlocker Configuration file


Signature=fb39851f-9218-4598-9e45-2e1e8f94edff
LinkExpires=1800


[Protect]
#Protect type Directory Redirect target (optional)
LINK  /test http://www.voterfocus.com/LinkExpired.htm
#LINK  /wall
#REFERER /images  http://www.mysite.com
#REDIRECT /swf


[ReferersBlackList]
#http://friendlysite.com
[ReferersWhiteList]
[UserAgentsBlackList]
[UserAgentsWhiteList]
#*wget*

Fred Schmidt, VR Systems, Inc.

Back to Top View schmidtfjs's Profile Search for other posts by schmidtfjs
 
Sergey
Admin Group
Admin Group


Joined: 11 March 2005
Online Status: Offline
Posts: 750
Posted: 27 June 2006 at 8:02am | IP Logged  

Please upgrade your HtolinkBlocker to the latest version.
Current build is 47.
Back to Top View Sergey's Profile Search for other posts by Sergey
 
schmidtfjs
Newbie
Newbie


Joined: 26 June 2006
Online Status: Offline
Posts: 6
Posted: 27 June 2006 at 8:05am | IP Logged  

This is the download that I received as a result of purchasing the tool yesterday.  I assume it is 47?

hotlinkblocker0047_manual.exe

Thanks,

Fred

Back to Top View schmidtfjs's Profile Search for other posts by schmidtfjs
 
Sergey
Admin Group
Admin Group


Joined: 11 March 2005
Online Status: Offline
Posts: 750
Posted: 27 June 2006 at 8:25am | IP Logged  

Can you send me this php script?

Any other ISAPI filters installed on your system?
Back to Top View Sergey's Profile Search for other posts by Sergey
 
Sergey
Admin Group
Admin Group


Joined: 11 March 2005
Online Status: Offline
Posts: 750
Posted: 27 June 2006 at 8:55am | IP Logged  

I found why it is happening. You need to turn Keep-Alive connections on. HotlinkBlocker cannot change links if Content-Length of the response is unknown.
Back to Top View Sergey's Profile Search for other posts by Sergey
 
schmidtfjs
Newbie
Newbie


Joined: 26 June 2006
Online Status: Offline
Posts: 6
Posted: 27 June 2006 at 9:02am | IP Logged  

I can send the script to you -- would prefer not to post it here.  Where should I send it?

Our Site configuration already has the "Enable HTTP Keep-Alives" check box turned on.  Am I looking in the correct place?

Back to Top View schmidtfjs's Profile Search for other posts by schmidtfjs
 
Sergey
Admin Group
Admin Group


Joined: 11 March 2005
Online Status: Offline
Posts: 750
Posted: 27 June 2006 at 9:36am | IP Logged  

support@helicontech.com
Back to Top View Sergey's Profile Search for other posts by Sergey
 
Sergey
Admin Group
Admin Group


Joined: 11 March 2005
Online Status: Offline
Posts: 750
Posted: 27 June 2006 at 10:09am | IP Logged  

Please temporary turn of HotlinkBlocker.
Back to Top View Sergey's Profile Search for other posts by Sergey
 
schmidtfjs
Newbie
Newbie


Joined: 26 June 2006
Online Status: Offline
Posts: 6
Posted: 27 June 2006 at 12:05pm | IP Logged  

Did so a while back.  Should have posted here -- instead, I emailed resonse -- sorry.

Fred

Back to Top View schmidtfjs's Profile Search for other posts by schmidtfjs
 
schmidtfjs
Newbie
Newbie


Joined: 26 June 2006
Online Status: Offline
Posts: 6
Posted: 28 June 2006 at 11:17am | IP Logged  

I am hopeful that a solution can be found for the above condition as the toolset becomes essentially unusable otherwise.  Or, Is there perhaps a good work around you can suggest?

Fred

Back to Top View schmidtfjs's Profile Search for other posts by schmidtfjs
 
Sergey
Admin Group
Admin Group


Joined: 11 March 2005
Online Status: Offline
Posts: 750
Posted: 29 June 2006 at 5:08am | IP Logged  

Looks like old bug.

Are you sure that use last version?
Please verify "FileVersion" property of HotlinkBlocker.dll
Back to Top View Sergey's Profile Search for other posts by Sergey
 
schmidtfjs
Newbie
Newbie


Joined: 26 June 2006
Online Status: Offline
Posts: 6
Posted: 29 June 2006 at 8:22am | IP Logged  

Replied via email with version snapshots.  Let me know if you don't get the email and I will record same here.

Thanks

Fred

Back to Top View schmidtfjs's Profile Search for other posts by schmidtfjs
 

Sorry, you can NOT post a reply.
This topic is closed.

  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