<?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: How to write non-sucking voting script</title>
	<atom:link href="http://www.majauskas.com/how-to-write-non-sucking-voting-script/feed" rel="self" type="application/rss+xml" />
	<link>http://www.majauskas.com/how-to-write-non-sucking-voting-script</link>
	<description></description>
	<lastBuildDate>Wed, 08 Sep 2010 15:27:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Giedrius</title>
		<link>http://www.majauskas.com/how-to-write-non-sucking-voting-script#comment-4790</link>
		<dc:creator>Giedrius</dc:creator>
		<pubDate>Mon, 18 May 2009 15:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.majauskas.com/?p=118#comment-4790</guid>
		<description>SELECT count(*) from votes where ip =&#039;$_REQUEST[REMOTE_ADDR]&#039; post_time &gt; NOW() - INTERVAL 1 day;  Would give the count of votes from same IP during 24 hours.</description>
		<content:encoded><![CDATA[<p>SELECT count(*) from votes where ip =&#8217;$_REQUEST[REMOTE_ADDR]&#8216; post_time > NOW() &#8211; INTERVAL 1 day;  Would give the count of votes from same IP during 24 hours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Skogly</title>
		<link>http://www.majauskas.com/how-to-write-non-sucking-voting-script#comment-4786</link>
		<dc:creator>Morten Skogly</dc:creator>
		<pubDate>Mon, 18 May 2009 12:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.majauskas.com/?p=118#comment-4786</guid>
		<description>Good post! I agree that it is more important to make it easy for legit, real human voters to participate than to block bots!

But I was wondering:
Do you have any tips for writing php / sql that filters the votes in different ways. My script logs ip and time of course, and usually people behave very well, but on a recent project we had at least two automated bots working the vote for a while.

I&#039;m not sure what our filter should be, but perhaps we could allow 1 vote pr ip for every forth hour, but I don&#039;t quite know how to write that as a select or combination of sql and php.

Would love to get some input if you have the time...

m.</description>
		<content:encoded><![CDATA[<p>Good post! I agree that it is more important to make it easy for legit, real human voters to participate than to block bots!</p>
<p>But I was wondering:<br />
Do you have any tips for writing php / sql that filters the votes in different ways. My script logs ip and time of course, and usually people behave very well, but on a recent project we had at least two automated bots working the vote for a while.</p>
<p>I&#8217;m not sure what our filter should be, but perhaps we could allow 1 vote pr ip for every forth hour, but I don&#8217;t quite know how to write that as a select or combination of sql and php.</p>
<p>Would love to get some input if you have the time&#8230;</p>
<p>m.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
