[pLog-svn] r4425 -
plugins/branches/lifetype-1.1/badbehavior/bad-behavior
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Dec 23 23:20:59 GMT 2006
Author: jondaley
Date: 2006-12-23 23:20:58 +0000 (Sat, 23 Dec 2006)
New Revision: 4425
Modified:
plugins/branches/lifetype-1.1/badbehavior/bad-behavior/post.inc.php
Log:
re-added fast posting catch - I don't know why the author said 5 seconds is too intrusive? It is hard to type a useful comment in 5 seconds, isn't it? We could lower it and still catch some spammers - I see them posting multiple times a second sometimes.
Modified: plugins/branches/lifetype-1.1/badbehavior/bad-behavior/post.inc.php
===================================================================
--- plugins/branches/lifetype-1.1/badbehavior/bad-behavior/post.inc.php 2006-12-23 23:09:50 UTC (rev 4424)
+++ plugins/branches/lifetype-1.1/badbehavior/bad-behavior/post.inc.php 2006-12-23 23:20:58 UTC (rev 4425)
@@ -42,12 +42,15 @@
if ($screener > 0) {
// Posting too fast? 5 sec
+ // LifeType mod by jondaley: since pages can be cached, the cookie might not be updated
+ // but this might catch fast spammers.
// FIXME: even 5 sec is too intrusive
- // if ($screener + 5 > time())
- // return "408d7e72";
+ if ($screener + 5 > time())
+ return "408d7e72";
// Posting too slow? 48 hr
// LifeType mod by jondaley: since pages can be cached, the cookie might not be updated
- // and this can get tripped incorrectly
+ // and this can get tripped incorrectly. NOTE, perhaps we could add the _POST[BB2_COOKIE]
+ // to the post form? I think that isn't currently used?
// if ($screener + 172800 < time())
// return "b40c8ddc";
More information about the pLog-svn
mailing list