<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1032257" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1032257</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188915</link>
    <description> &lt;p&gt;Glad to help you learn something new!  Good luck!&lt;/p&gt;
&lt;p&gt;-Jim&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 21:28:59 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1188915 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188909</link>
    <description> &lt;p&gt;Wow, that was easy!  I had no idea it was that simple to do it.  See, I just learned something else today.&lt;/p&gt;
&lt;p&gt;Thanks so much!&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 17:25:28 +0000</pubDate>
 <dc:creator>digidivakathy</dc:creator>
 <guid isPermaLink="false">comment 1188909 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188908</link>
    <description> &lt;p&gt;Ok if you have phpmyadmin then you can do it easily.  &lt;/p&gt;
&lt;p&gt;First open phpmyadmin and on the left hand side select from the dropdown the database you created.  Now click the SQL tab in the middle of the screen. &lt;/p&gt;
&lt;p&gt;Just copy/paste this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;# Table structure for tables `dlm_files` and `dlm_stats`&lt;br /&gt;&lt;br /&gt;CREATE TABLE `dlm_files` (&lt;br /&gt;`id` int(11) NOT NULL auto_increment,&lt;br /&gt;`path` tinytext NOT NULL,&lt;br /&gt;`daily_limit` int(11) NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;`total_limit` int(11) NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;PRIMARY KEY (`id`)&lt;br /&gt;) TYPE=MyISAM;&lt;br /&gt;&lt;br /&gt;CREATE TABLE `dlm_stats` (&lt;br /&gt;`dl_date` date NOT NULL default &amp;#039;0000-00-00&amp;#039;,&lt;br /&gt;`file_id` int(11) NOT NULL default &amp;#039;0&amp;#039;,&lt;br /&gt;`dl_count` int(11) NOT NULL default &amp;#039;0&amp;#039;&lt;br /&gt;) TYPE=MyISAM;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Into the Run query textbox. Then click the go button below the text box. You should be good to go!&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 17:00:21 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1188908 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188906</link>
    <description> &lt;p&gt;Well, since you asked &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt; ...&lt;/p&gt;
&lt;p&gt;I have never had to manually create a table before.  I have access through phpmyadmin and have already added the database, just need to create the table fields, I think.  Here&#039;s what was in the read_me file...&lt;/p&gt;
&lt;p&gt;# Table structure for tables `dlm_files` and `dlm_stats`&lt;/p&gt;
&lt;p&gt;CREATE TABLE `dlm_files` (&lt;br /&gt;
  `id` int(11) NOT NULL auto_increment,&lt;br /&gt;
  `path` tinytext NOT NULL,&lt;br /&gt;
  `daily_limit` int(11) NOT NULL default &#039;0&#039;,&lt;br /&gt;
  `total_limit` int(11) NOT NULL default &#039;0&#039;,&lt;br /&gt;
  PRIMARY KEY  (`id`)&lt;br /&gt;
) TYPE=MyISAM;&lt;/p&gt;
&lt;p&gt;CREATE TABLE `dlm_stats` (&lt;br /&gt;
  `dl_date` date NOT NULL default &#039;0000-00-00&#039;,&lt;br /&gt;
  `file_id` int(11) NOT NULL default &#039;0&#039;,&lt;br /&gt;
  `dl_count` int(11) NOT NULL default &#039;0&#039;&lt;br /&gt;
) TYPE=MyISAM;&lt;/p&gt;
&lt;p&gt;I know my host will do this for me when I can catch up with him, but I would love to understand how to do this myself, so if there are some basic instructions you could share with me, that would be awesome.&lt;/p&gt;
&lt;p&gt;Seriously, thanks so much!  I really appreciate this community and the help I&#039;ve found here &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; .&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 16:42:29 +0000</pubDate>
 <dc:creator>digidivakathy</dc:creator>
 <guid isPermaLink="false">comment 1188906 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188905</link>
    <description> &lt;p&gt;Glad to hear you solved your problem Kathy! Sometimes you have to just bite the bullet and pay for a utility here and there.  If you have problems with the install feel free to come back here for help. &lt;/p&gt;
&lt;p&gt;..oh and remember, we were all newbies one day!&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 16:30:48 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1188905 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188904</link>
    <description> &lt;p&gt;I actually found a script that I think will work perfectly for me, but it doesn&#039;t have an install script, so I have to figure out how to create a table in my database...  I&#039;m sure that&#039;s something I needed to learn, anyway.  It was $7, but, hey, that&#039;s cheap if it solves my problem, LOL.&lt;/p&gt;
&lt;p&gt;Thanks for the help everyone!&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 16:16:03 +0000</pubDate>
 <dc:creator>digidivakathy</dc:creator>
 <guid isPermaLink="false">comment 1188904 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188903</link>
    <description> &lt;p&gt;Oh, no need to apologize.  I love to learn and I&#039;ve learned everything I do know (which isn&#039;t much, LOL) from nice people and googling the things I was trying to do.  BUT, yeah, this is a bit more technical than the stuff I&#039;ve done so far.  I really thought I&#039;d be able to find a pre-made script to do it, but I guess it&#039;s maybe a strange request.  I downloaded and installed a program I found at hotscripts.com and like everything about it, but it doesn&#039;t give me the ability to do that one key thing...stop the download&#039;s availability after the first X number of downloads.  People won&#039;t be downloading the file more than once, once they have it, they have it.  But, I just want to be able to do an occasional giveaway of my products (I create digital scrapbooking kits) to the first few people who stumble upon the link on my blog and this would be the easiest way to make it happen.&lt;/p&gt;
&lt;p&gt;As for my host, it&#039;s Worry Free Webhosting.  Platform?  Ummm...okay, pardon my ignorance, but is Linux the answer to that question &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; ?&lt;/p&gt;
&lt;p&gt;Thanks for your patience with a newbie!&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 15:48:23 +0000</pubDate>
 <dc:creator>digidivakathy</dc:creator>
 <guid isPermaLink="false">comment 1188903 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188899</link>
    <description> &lt;p&gt;My mistake Kathy.  I was under the impression you wanted to know about how this is done in a technical sense. Sorry to overwhelm you.&lt;/p&gt;
&lt;p&gt;I don&#039;t know of a script that does this automatically but I can tell you that without knowledge of a language like php or asp it will be tricky to get this fairly technical script to work on your own.  What kind of platform are you looking to do this on?  Who is your site&#039;s host?&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 15:35:20 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1188899 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188897</link>
    <description> &lt;p&gt;Okay, that is so far over my head I am drowning, LOL.  Maybe I better stick to the e-mail system because I have no idea what you are talking about there or how to make it happen...so, there are no scripts that anyone knows of that will do this out of the box?  Sorry for being such a newbie &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; !&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 13:54:20 +0000</pubDate>
 <dc:creator>digidivakathy</dc:creator>
 <guid isPermaLink="false">comment 1188897 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/script-limit-number-times-file-can-be-downloaded#comment-1188893</link>
    <description> &lt;p&gt;The way to do this is to create a timestamp ticket and an ip hash.  So for example say I click the download link.  My link to the file should include a timestamp ticket and an ip ticket (both md5 hashed maybe).  People&#039;s tickets should be valid for about 5 min and only for their ip.  Sure its not a perfect system but its the best you can do. Basically you have.&lt;/p&gt;
&lt;p&gt;download.php?dlid=a96b598bc321|a908093ce5b45b&lt;/p&gt;
&lt;p&gt;The first number should be the timestamp combined with a randomly generated key and the second should be their hashed ip combined with a randomly generated key.&lt;/p&gt;
&lt;p&gt;Each time a new ticket is issued you put it in your database. Your db should be like this kinda:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;| id | hash time&amp;nbsp;&amp;nbsp;&amp;nbsp; | actual time |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hash ip&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; real ip&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp; 1 | a96b598bc321 | 10234563583 | a908093ce5b45b&amp;nbsp; |&amp;nbsp; 90.67.56.43&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp; 2 | d56b598bc674 | 10234564683 | 8708093ce535cd&amp;nbsp; |&amp;nbsp; 10.78.48.89&amp;nbsp;&amp;nbsp; |&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
Anyhow yeah. That way you can keep track of who is coming on (as long as they don&#039;t use a proxy) and also can keep track of how long they are on.  Once the id gets to a certain number you just block any more entries from being entered and therefore the php file should block any incoming requests.&lt;/p&gt;
 </description>
     <pubDate>Mon, 26 Dec 2005 09:32:41 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1188893 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
