<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Protect Your ClickBank &quot;Thank You&quot; Page</title>
	<atom:link href="http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/</link>
	<description>Imagine What you Could Do...    ..If You Could Do What You Imagine</description>
	<lastBuildDate>Thu, 15 Sep 2011 19:31:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: of mesothelioma</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-494</link>
		<dc:creator>of mesothelioma</dc:creator>
		<pubDate>Tue, 03 Aug 2010 01:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-494</guid>
		<description>Thanks for writing this article - I&#039;ve as of yet heard very little about Windows Mobile 6, so it was nice to read about it.</description>
		<content:encoded><![CDATA[<p>Thanks for writing this article &#8211; I&#39;ve as of yet heard very little about Windows Mobile 6, so it was nice to read about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-492</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Tue, 02 Mar 2010 06:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-492</guid>
		<description>here is what makes it work.&lt;br&gt;change line 4 from&lt;br&gt;$xxpop=sha1(&quot;$key&#124;$rcpt&#124;$time&#124;$item&quot;);&lt;br&gt;to&lt;br&gt;$xxpop=sha1($key&#124;$rcpt&#124;$time&#124;$item);&lt;br&gt;&lt;br&gt;then change line 20 from &lt;br&gt;&lt;br&gt;header (&quot;Location: &lt;a href=&quot;http://www.blabla.com/blabla.php%22%29;&quot; rel=&quot;nofollow&quot;&gt;http://www.blabla.com/blabla.php&quot;);&lt;/a&gt;&lt;br&gt;to&lt;br&gt;header (&#039;Location: &lt;a href=&quot;http://www.blabla.com/blabla.php%27%29;&quot; rel=&quot;nofollow&quot;&gt;http://www.blabla.com/blabla.php&#039;);&lt;/a&gt;&lt;br&gt;&lt;br&gt;its symple syntax error&lt;br&gt;&lt;br&gt;i also got rid of &lt;br&gt;&lt;br&gt;exit;&lt;br&gt;&lt;br&gt;on line 21 and changed to to &lt;br&gt;&lt;br&gt;else&lt;br&gt;header (&#039;Location: &lt;a href=&quot;http://www.blabla.com/blabla.php%27%29;&quot; rel=&quot;nofollow&quot;&gt;http://www.blabla.com/blabla.php&#039;);&lt;/a&gt;&lt;br&gt;&lt;br&gt;here is the full code&lt;br&gt;&lt;br&gt;&lt;?php // thankyou.php &lt;br&gt;function cbValid($rcpt, $time, $item, $cbpop){&lt;br&gt;$key=’key’;&lt;br&gt;$xxpop=sha1($key&#124;$rcpt&#124;$time&#124;$item);&lt;br&gt;$xxpop=strtoupper(substr($xxpop,0,8));&lt;br&gt;if ($cbpop==$xxpop){&lt;br&gt;return 1;&lt;br&gt;} else {&lt;br&gt;return 0;&lt;br&gt;}&lt;br&gt;}&lt;br&gt;// ===== Sanitize the input (only allow GET for security) =====&lt;br&gt;$rcpt = trim(addslashes($_GET[&#039;cbreceipt&#039;]));&lt;br&gt;$time = trim(addslashes($_GET[&#039;time&#039;]));&lt;br&gt;$item = trim(addslashes($_GET[&#039;item&#039;]));&lt;br&gt;$cbpop = trim(addslashes($_GET[&#039;cbpop&#039;]));&lt;br&gt;// ===== Redirect if invalid and exit =====&lt;br&gt;if (!cbValid($rcpt, $time, $item, $cbpop)) {&lt;br&gt;// redirect&lt;br&gt;header (&#039;Location: &lt;a href=&quot;http://www.blabla.com/blabla.php%27%29;&quot; rel=&quot;nofollow&quot;&gt;http://www.blabla.com/blabla.php&#039;);&lt;/a&gt;&lt;br&gt;else&lt;br&gt;header (&#039;Location: &lt;a href=&quot;http://www.blablacom/blabla.php%27%29;&quot; rel=&quot;nofollow&quot;&gt;http://www.blablacom/blabla.php&#039;);&lt;/a&gt;&lt;br&gt;} &lt;br&gt;// no need to do an ELSE because the exit will terminate further processing &lt;br&gt;// if a valid transaction is not confirmed &lt;br&gt;// now have the thank you page html &lt;br&gt;?&gt;</description>
		<content:encoded><![CDATA[<p>here is what makes it work.<br />change line 4 from<br />$xxpop=sha1(&#8220;$key|$rcpt|$time|$item&#8221;);<br />to<br />$xxpop=sha1($key|$rcpt|$time|$item);</p>
<p>then change line 20 from </p>
<p>header (&#8220;Location: <a href="http://www.blabla.com/blabla.php%22%29;" rel="nofollow"></a><a href="http://www.blabla.com/blabla.php" rel="nofollow">http://www.blabla.com/blabla.php</a>&#8220;);<br />to<br />header (&#39;Location: <a href="http://www.blabla.com/blabla.php%27%29;" rel="nofollow"></a><a href="http://www.blabla.com/blabla.php&#038;#39" rel="nofollow">http://www.blabla.com/blabla.php&#038;#39</a> <img src='http://www.teamrees.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ;</p>
<p>its symple syntax error</p>
<p>i also got rid of </p>
<p>exit;</p>
<p>on line 21 and changed to to </p>
<p>else<br />header (&#39;Location: <a href="http://www.blabla.com/blabla.php%27%29;" rel="nofollow"></a><a href="http://www.blabla.com/blabla.php&#038;#39" rel="nofollow">http://www.blabla.com/blabla.php&#038;#39</a> <img src='http://www.teamrees.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ;</p>
<p>here is the full code</p>
<p>&lt;?php // thankyou.php <br />function cbValid($rcpt, $time, $item, $cbpop){<br />$key=’key’;<br />$xxpop=sha1($key|$rcpt|$time|$item);<br />$xxpop=strtoupper(substr($xxpop,0,8));<br />if ($cbpop==$xxpop){<br />return 1;<br />} else {<br />return 0;<br />}<br />}<br />// ===== Sanitize the input (only allow GET for security) =====<br />$rcpt = trim(addslashes($_GET[&#39;cbreceipt&#39;]));<br />$time = trim(addslashes($_GET[&#39;time&#39;]));<br />$item = trim(addslashes($_GET[&#39;item&#39;]));<br />$cbpop = trim(addslashes($_GET[&#39;cbpop&#39;]));<br />// ===== Redirect if invalid and exit =====<br />if (!cbValid($rcpt, $time, $item, $cbpop)) {<br />// redirect<br />header (&#39;Location: <a href="http://www.blabla.com/blabla.php%27%29;" rel="nofollow"></a><a href="http://www.blabla.com/blabla.php&#038;#39" rel="nofollow">http://www.blabla.com/blabla.php&#038;#39</a> <img src='http://www.teamrees.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ;<br />else<br />header (&#39;Location: <a href="http://www.blablacom/blabla.php%27%29;" rel="nofollow"></a><a href="http://www.blablacom/blabla.php&#038;#39" rel="nofollow">http://www.blablacom/blabla.php&#038;#39</a> <img src='http://www.teamrees.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ;<br />} <br />// no need to do an ELSE because the exit will terminate further processing <br />// if a valid transaction is not confirmed <br />// now have the thank you page html <br />?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pill</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-475</link>
		<dc:creator>pill</dc:creator>
		<pubDate>Wed, 16 Sep 2009 20:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-475</guid>
		<description>There is an parse error on the script when i tried to paste it in the thank you page.. hope fully someone can help me.

This is the exact error I&#039;ve encountered.

Parse error: syntax error, unexpected T_VARIABLE in /home/****/public_html/**********/*******443isdbxksncyromwgdx/index.php on line 4

(I replaced my domain folders to asterisk for security purposes)

Thanks!</description>
		<content:encoded><![CDATA[<p>There is an parse error on the script when i tried to paste it in the thank you page.. hope fully someone can help me.</p>
<p>This is the exact error I&#8217;ve encountered.</p>
<p>Parse error: syntax error, unexpected T_VARIABLE in /home/****/public_html/**********/*******443isdbxksncyromwgdx/index.php on line 4</p>
<p>(I replaced my domain folders to asterisk for security purposes)</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-471</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 28 Aug 2009 02:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-471</guid>
		<description>No, because the page with the key on it is never visible nor displayed... it&#039;s just called from initial page.

I would never say never, I guess anything is possible, but it&#039;s not as easy as you might think...   and it&#039;s certainly more secure than using nothing at all.</description>
		<content:encoded><![CDATA[<p>No, because the page with the key on it is never visible nor displayed&#8230; it&#8217;s just called from initial page.</p>
<p>I would never say never, I guess anything is possible, but it&#8217;s not as easy as you might think&#8230;   and it&#8217;s certainly more secure than using nothing at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lol</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-463</link>
		<dc:creator>lol</dc:creator>
		<pubDate>Sun, 02 Aug 2009 19:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-463</guid>
		<description>Clearly you do not understand PHP proper seo service


PHP is server-side.
HTML is client-side.


This code is PHP, which means - it is -not- displayed to the user.</description>
		<content:encoded><![CDATA[<p>Clearly you do not understand PHP proper seo service</p>
<p>PHP is server-side.<br />
HTML is client-side.</p>
<p>This code is PHP, which means &#8211; it is -not- displayed to the user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proper seo service</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-462</link>
		<dc:creator>proper seo service</dc:creator>
		<pubDate>Fri, 05 Jun 2009 23:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-462</guid>
		<description>Guys, don&#039;t u think someone could view the source code and copy your secret key if this code is used?</description>
		<content:encoded><![CDATA[<p>Guys, don&#8217;t u think someone could view the source code and copy your secret key if this code is used?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-444</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 21 Jan 2009 02:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-444</guid>
		<description>@Vincent DErrico, send me the pages you have, and I&#039;ll take a look at them... you can send them to chris@teamrees.com</description>
		<content:encoded><![CDATA[<p>@Vincent DErrico, send me the pages you have, and I&#8217;ll take a look at them&#8230; you can send them to <a href="mailto:chris@teamrees.com">chris@teamrees.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent DErrico</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-443</link>
		<dc:creator>Vincent DErrico</dc:creator>
		<pubDate>Tue, 20 Jan 2009 22:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-443</guid>
		<description>I copied the script and pasted it into my thankyou page and gave the page a .php extension.  I changed ABCDE to my key and sendthemsomewhere.com to wiseh2o.com/error.html.  The script did not work and I keep getting a Parse error.  Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>I copied the script and pasted it into my thankyou page and gave the page a .php extension.  I changed ABCDE to my key and sendthemsomewhere.com to wiseh2o.com/error.html.  The script did not work and I keep getting a Parse error.  Any help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-435</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 09 Jan 2009 10:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-435</guid>
		<description>I decided to try out ClickBank yesterday to leverage their affiliate network for a digital product. Instead of relying on the thank you page for anything, I&#039;m using their &quot;instant notification&quot; option.

When a sale is made, the clickbank system notifies a url on the seller&#039;s site with details of the purchase. You can then setup a script to validate the incoming data (see clickbank documentation for php example), and perform any actions needed - in my case, the creation of a new upgraded user on the site, and sending an email with their login details.

With this approach, because all validation and actions are done at the notification url stage, when the user gets to the thank you page you don&#039;t need to expose your product or any other sensitive data on that page.

You can still show the user any data you want on the thank you page however, by saving the receipt string during the notification process, and then using the $_GET value given in the thank you url to select the information from your database again.</description>
		<content:encoded><![CDATA[<p>I decided to try out ClickBank yesterday to leverage their affiliate network for a digital product. Instead of relying on the thank you page for anything, I&#8217;m using their &#8220;instant notification&#8221; option.</p>
<p>When a sale is made, the clickbank system notifies a url on the seller&#8217;s site with details of the purchase. You can then setup a script to validate the incoming data (see clickbank documentation for php example), and perform any actions needed &#8211; in my case, the creation of a new upgraded user on the site, and sending an email with their login details.</p>
<p>With this approach, because all validation and actions are done at the notification url stage, when the user gets to the thank you page you don&#8217;t need to expose your product or any other sensitive data on that page.</p>
<p>You can still show the user any data you want on the thank you page however, by saving the receipt string during the notification process, and then using the $_GET value given in the thank you url to select the information from your database again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Rees</title>
		<link>http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/comment-page-1/#comment-491</link>
		<dc:creator>Christopher Rees</dc:creator>
		<pubDate>Tue, 21 Oct 2008 18:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.teamrees.com/2008/04/11/protect-your-clickbank-thank-you-page/#comment-491</guid>
		<description>Hi Karen, thanks for the comment and glad I was able to help out!   -Chris</description>
		<content:encoded><![CDATA[<p>Hi Karen, thanks for the comment and glad I was able to help out!   -Chris</p>
]]></content:encoded>
	</item>
</channel>
</rss>

