Hello,<br> I would assume that the regular plugin release script only pulls plugins that are inside the plugin repository directory. But since, this plugin doesn't exist in this directory, it will not be pushed to sourceforge.<br>
<br> The changes are: <br><ol><li>Digg was being blocked, so a post hosted on LifeType couldn't be "dugg"</li><li>Using the Akamai site accelerator would not have worked</li><li>Trackbacks from WordPress would have failed.</li>
</ol><a href="http://www.bad-behavior.ioerror.us/2008/01/18/bad-behavior-2012/">http://www.bad-behavior.ioerror.us/2008/01/18/bad-behavior-2012/</a><br><a href="http://www.bad-behavior.ioerror.us/2008/01/27/bad-behavior-2013/">http://www.bad-behavior.ioerror.us/2008/01/27/bad-behavior-2013/</a><br>
<br>I don't know if any of those issues really require spinning another release of LifeType.<br><br>I believe that what would give us the most flexibility, would be to move the plugin back to the plugin repository directory. Then modify the script that bundles the LifeType releases to pull the latest version of the bad behavior plugin from the plugin repository directory.<br>
<br>This would allow the plugin to easily change outside of the LifeType release cycle.<br><br>--Paul<br><br><div><span class="gmail_quote">On 2/29/08, <b class="gmail_sendername">Jon Daley</b> <<a href="mailto:plogworld@jon.limedaley.com">plogworld@jon.limedaley.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Couldn't you run the regular plugin release script for releases<br> that you really want to release outside of a lifetype branch? For this<br> particular check-in, was it an important change?<br> <br><br> On Fri, 29 Feb 2008, Mark Wu wrote:<br>
<br> > Hi Paul:<br> ><br> > I remember we did this before, the plugins and core are seperate in<br> > different repository directories.<br> ><br> > The resaon we move the bad behavior to the core is becasue we want it as<br>
> part of core ... and deliver it with lifetype official release.<br> ><br> > If there are an urgent patch or upgrade of bad behavior, I think we can<br> > release a lifetype hotfix for it.<br> ><br> > How do you think?<br>
><br> > Mark<br> ><br> ><br> > _____<br> ><br> > From: <a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net</a><br> > [mailto:<a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net</a>] On Behalf Of Paul Westbrook<br>
> Sent: Friday, February 29, 2008 4:05 PM<br> > To: LifeType Developer List<br> > Subject: Re: [pLog-svn] r6192<br> > -inplog/branches/lifetype-1.2/plugins/badbehavior: . bad-behavior<br> ><br> ><br> > Hello,<br>
> Sure. But I am wondering about something slightly different. I am<br> > thinking about when more people have moved to 2.0. I assume that there will<br> > be a period that 1.2 will still be a supported release, but most developers<br>
> will be working on 2.0.<br> ><br> > If there is a new version of bad behavior, currently we need to do a new<br> > release of LifeType, as the bad behavior plugin is not available separately.<br> ><br>
> I assume that at some point we will move the bad behavior plugin to the<br> > plugin branch, to make it easier to release new versions of this plugin.<br> ><br> > --Paul<br> ><br> ><br> > On 2/28/08, Mark Wu <<a href="mailto:markplace@gmail.com">markplace@gmail.com</a>> wrote:<br>
><br> > Hi Paul:<br> ><br> > I think it is okay. Bcasue I always merge the 1.2 branch to trunk in a<br> > certain period . These changes will apply to 2.0-dev very soon.<br> ><br> > Regards, Mark<br>
><br> ><br> > _____<br> ><br> > From: <a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net</a><br> > [mailto:<a href="mailto:plog-svn-bounces@devel.lifetype.net">plog-svn-bounces@devel.lifetype.net</a>] On Behalf Of Paul Westbrook<br>
> Sent: Friday, February 29, 2008 2:57 PM<br> > To: LifeType Developer List<br> > Subject: Re: [pLog-svn] r6192 -<br> > inplog/branches/lifetype-1.2/plugins/badbehavior: . bad-behavior<br> ><br> ><br> ><br>
> Hello,<br> > As development for LifeType 2.0 takes highe priority, will this plugin,<br> > or the LifeType 1.2 version of it, move back to the main plugin subversion<br> > branch? This would allow quick patches to the plugin to be done, with out<br>
> having to spin a whole LifeType release.<br> ><br> > --Paul<br> ><br> ><br> > On 2/28/08, <a href="mailto:pwestbro@devel.lifetype.net">pwestbro@devel.lifetype.net</a> <<a href="mailto:pwestbro@devel.lifetype.net">pwestbro@devel.lifetype.net</a>> wrote:<br>
><br> ><br> > Author: pwestbro<br> > Date: 2008-02-29 01:49:43 -0500 (Fri, 29 Feb 2008)<br> > New Revision: 6192<br> ><br> > Modified:<br> ><br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/blacklist.inc.ph<br>
> p<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/msie.inc.php<br> ><br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/version.inc.php<br> ><br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/whitelist.inc.ph<br>
> p<br> ><br> > plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php<br> > Log:<br> > Checked in version 2.0.13 of bad behavior<br> ><br> ><br> > Modified:<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/blacklist.inc.ph<br>
> p<br> > ===================================================================<br> > ---<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/blacklist.inc.ph<br> <br>> p 2008-02-28 10:54:49 UTC (rev 6191)<br>
<br>> +++<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/blacklist.inc.ph<br> <br>> p 2008-02-29 06:49:43 UTC (rev 6192)<br> <br>> @@ -1,113 +1,113 @@<br> > -<?php if (!defined('BB2_CORE')) die('I said no cheating!');<br>
> -<br> > -function bb2_blacklist($package) {<br> > -<br> > - // Blacklisted user agents<br> > - // These user agent strings occur at the beginning of the line.<br> > - $bb2_spambots_0 = array(<br>
> - "<sc", // XSS exploit attempts<br> > - "8484 Boston Project", // video poker/porn spam<br> > - "adwords", // referrer spam<br>
> - "autoemailspider", // spam harvester<br> > - "blogsearchbot-martin", // from honeypot<br> > - "Digger", // spam harvester<br>
> - "ecollector", // spam harvester<br> > - "EmailCollector", // spam harvester<br> > - "Email Extractor", // spam harvester<br>
> - "Email Siphon", // spam harvester<br> > - "EmailSiphon", // spam harvester<br> > - "grub crawler", // misc comment/email spam<br>
> - "HttpProxy", // misc comment/email spam<br> > - "Internet Explorer", // XMLRPC exploits seen<br> > - "Jakarta Commons", // custommised spambots<br>
> - "Java 1.", // definitely a spammer<br> > - "Java/1.", // definitely a spammer<br> > - "libwww-perl", // spambot scripts<br>
> - "LWP", // spambot scripts<br> > - "Microsoft URL", // spam harvester<br> > - "Missigua", // spam harvester<br>
> - "MJ12bot", // crawls MUCH too fast<br> > - "Movable Type", // customised spambots<br> > - "Mozilla ", // malicious software<br>
> - "Mozilla/4.0(", // from honeypot<br> > - "Mozilla/4.0+(", // suspicious harvester<br> > - "MSIE", // malicious software<br>
> - "NutchCVS", // unidentified robots<br> > - "Nutscrape/", // misc comment spam<br> > - "OmniExplorer", // spam harvester<br>
> - "psycheclone", // spam harvester<br> > - "PussyCat ", // misc comment spam<br> > - "PycURL", // misc comment spam<br>
> - "Shockwave Flash", // spam harvester<br> > - "TrackBack/", // trackback spam<br> > - "user", // suspicious harvester<br>
> - "User Agent: ", // spam harvester<br> > - "User-Agent: ", // spam harvester<br> > - "Wordpress", // malicious software<br>
> - "\"", // malicious software<br> > - );<br> > -<br> > - // These user agent strings occur anywhere within the line.<br> > - $bb2_spambots = array(<br>
> - "\r", // A really dumb bot<br> > - "; Widows ", // misc comment/email spam<br> > - "a href=", // referrer spam<br>
> - "Bad Behavior Test", // Add this to your user-agent to<br> > test BB<br> > - "compatible ; MSIE", // misc comment/email spam<br> > - "compatible-", // misc comment/email spam<br>
> - "DTS Agent", // misc comment/email spam<br> > - "Gecko/25", // revisit this in 500 years<br> > - "grub-client", // search engine ignores robots.txt<br>
> - "hanzoweb", // very badly behaved crawler<br> > - "Indy Library", // misc comment/email spam<br> > - "larbin@unspecified", // stealth harvesters<br>
> - "Murzillo compatible", // comment spam bot<br> > - ".NET CLR 1)", // free poker, etc.<br> > - "POE-Component-Client", // free poker, etc.<br>
> - "Turing Machine", // <a href="http://www.anonymizer.com">www.anonymizer.com</a> abuse<br> > - "WebaltBot", // spam harvester<br> > - "WISEbot", // spam harvester<br>
> - "WISEnutbot", // spam harvester<br> > - "Windows NT 4.0;)", // wikispam bot<br> > - "Windows NT 5.0;)", // wikispam bot<br>
> - "Windows NT 5.1;)", // wikispam bot<br> > - "Windows XP 5", // spam harvester<br> > - "\\\\)", // spam harvester<br>
> - );<br> > -<br> > - // These are regular expression matches.<br> > - $bb2_spambots_regex = array(<br> > - "/^[A-Z]{10}$/", // misc email spam<br> > - "/^Mozilla...[05]$/i", // fake user agent/email spam<br>
> - "/[bcdfghjklmnpqrstvwxz ]{8,}/",<br> > -// "/(;\){1,2}$/", // misc spammers/harvesters<br> > -// "/MSIE.*Windows XP/", // misc comment spam<br>
> - );<br> > -<br> > - // Do not edit below this line.<br> > -<br> > - $ua = $package['headers_mixed']['User-Agent'];<br> > -<br> > - foreach ($bb2_spambots_0 as $spambot) {<br>
> - $pos = stripos($ua, $spambot);<br> > - if ($pos !== FALSE && $pos == 0) {<br> > - return "17f4e8c8";<br> > - }<br> > - }<br>
> -<br> > - foreach ($bb2_spambots as $spambot) {<br> > - if (stripos($ua, $spambot) !== FALSE) {<br> > - return "17f4e8c8";<br> > - }<br> > - }<br>
> -<br> > - foreach ($bb2_spambots_regex as $spambot) {<br> > - if (preg_match($spambot, $ua)) {<br> > - return "17f4e8c8";<br> > - }<br> > - }<br>
> -<br> > - return FALSE;<br> > -}<br> > -<br> > -?><br> > +<?php if (!defined('BB2_CORE')) die('I said no cheating!');<br> > +<br> > +function bb2_blacklist($package) {<br>
> +<br> > + // Blacklisted user agents<br> > + // These user agent strings occur at the beginning of the line.<br> > + $bb2_spambots_0 = array(<br> > + "<sc", // XSS exploit attempts<br>
> + "8484 Boston Project", // video poker/porn spam<br> > + "adwords", // referrer spam<br> > + "autoemailspider", // spam harvester<br>
> + "blogsearchbot-martin", // from honeypot<br> > + "Digger", // spam harvester<br> > + "ecollector", // spam harvester<br>
> + "EmailCollector", // spam harvester<br> > + "Email Extractor", // spam harvester<br> > + "Email Siphon", // spam harvester<br>
> + "EmailSiphon", // spam harvester<br> > + "grub crawler", // misc comment/email spam<br> > + "HttpProxy", // misc comment/email spam<br>
> + "Internet Explorer", // XMLRPC exploits seen<br> > + "Jakarta Commons", // custommised spambots<br> > + "Java 1.", // definitely a spammer<br>
> + "Java/1.", // definitely a spammer<br> > + "libwww-perl", // spambot scripts<br> > + "LWP", // spambot scripts<br>
> + "Microsoft URL", // spam harvester<br> > + "Missigua", // spam harvester<br> > + "MJ12bot", // crawls MUCH too fast<br>
> + "Movable Type", // customised spambots<br> > + "Mozilla ", // malicious software<br> > + "Mozilla/4.0(", // from honeypot<br>
> + "Mozilla/4.0+(", // suspicious harvester<br> > + "MSIE", // malicious software<br> > + "NutchCVS", // unidentified robots<br>
> + "Nutscrape/", // misc comment spam<br> > + "OmniExplorer", // spam harvester<br> > + "psycheclone", // spam harvester<br>
> + "PussyCat ", // misc comment spam<br> > + "PycURL", // misc comment spam<br> > + "Shockwave Flash", // spam harvester<br>
> + "TrackBack/", // trackback spam<br> > + "user", // suspicious harvester<br> > + "User Agent: ", // spam harvester<br>
> + "User-Agent: ", // spam harvester<br> > + "Wordpress", // malicious software<br> > + "\"", // malicious software<br>
> + );<br> > +<br> > + // These user agent strings occur anywhere within the line.<br> > + $bb2_spambots = array(<br> > + "\r", // A really dumb bot<br>
> + "; Widows ", // misc comment/email spam<br> > + "a href=", // referrer spam<br> > + "Bad Behavior Test", // Add this to your user-agent to<br>
> test BB<br> > + "compatible ; MSIE", // misc comment/email spam<br> > + "compatible-", // misc comment/email spam<br> > + "DTS Agent", // misc comment/email spam<br>
> + "Gecko/25", // revisit this in 500 years<br> > + "grub-client", // search engine ignores robots.txt<br> > + "hanzoweb", // very badly behaved crawler<br>
> + "Indy Library", // misc comment/email spam<br> > + "larbin@unspecified", // stealth harvesters<br> > + "Murzillo compatible", // comment spam bot<br>
> + ".NET CLR 1)", // free poker, etc.<br> > + "POE-Component-Client", // free poker, etc.<br> > + "Turing Machine", // <a href="http://www.anonymizer.com">www.anonymizer.com</a> abuse<br>
> + "WebaltBot", // spam harvester<br> > + "WISEbot", // spam harvester<br> > + "WISEnutbot", // spam harvester<br>
> + "Windows NT 4.0;)", // wikispam bot<br> > + "Windows NT 5.0;)", // wikispam bot<br> > + "Windows NT 5.1;)", // wikispam bot<br>
> + "Windows XP 5", // spam harvester<br> > + "\\\\)", // spam harvester<br> > + );<br> > +<br> > + // These are regular expression matches.<br>
> + $bb2_spambots_regex = array(<br> > + "/^[A-Z]{10}$/", // misc email spam<br> > + "/^Mozilla...[05]$/i", // fake user agent/email spam<br> > + "/[bcdfghjklmnpqrstvwxz ]{8,}/",<br>
> +// "/(;\){1,2}$/", // misc spammers/harvesters<br> > +// "/MSIE.*Windows XP/", // misc comment spam<br> > + );<br> > +<br> > + // Do not edit below this line.<br>
> +<br> > + $ua = $package['headers_mixed']['User-Agent'];<br> > +<br> > + foreach ($bb2_spambots_0 as $spambot) {<br> > + $pos = strpos($ua, $spambot);<br> > + if ($pos !== FALSE && $pos == 0) {<br>
> + return "17f4e8c8";<br> > + }<br> > + }<br> > +<br> > + foreach ($bb2_spambots as $spambot) {<br> > + if (strpos($ua, $spambot) !== FALSE) {<br>
> + return "17f4e8c8";<br> > + }<br> > + }<br> > +<br> > + foreach ($bb2_spambots_regex as $spambot) {<br> > + if (preg_match($spambot, $ua)) {<br>
> + return "17f4e8c8";<br> > + }<br> > + }<br> > +<br> > + return FALSE;<br> > +}<br> > +<br> > +?><br> ><br> > Modified:<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/msie.inc.php<br>
> ===================================================================<br> > --- plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/msie.inc.php<br> > 2008-02-28 10:54:49 UTC (rev 6191)<br> > +++ plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/msie.inc.php<br>
> 2008-02-29 06:49:43 UTC (rev 6192)<br> > @@ -1,24 +1,25 @@<br> > -<?php if (!defined('BB2_CORE')) die('I said no cheating!');<br> > -<br> > -// Analyze user agents claiming to be MSIE<br>
> -<br> > -function bb2_msie($package)<br> > -{<br> > - if (!array_key_exists('Accept', $package['headers_mixed'])) {<br> > - return "17566707";<br> > - }<br>
> -<br> > - // MSIE does NOT send "Windows ME" or "Windows XP" in the user agent<br> > - if (strpos($package['headers_mixed']['User-Agent'], "Windows ME")<br>
> !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Windows XP")<br> > !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Windows 2000")<br>
> !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Win32") !==<br> > FALSE) {<br> > - return "a1084bad";<br> > - }<br> > -<br> > - // MSIE does NOT send Connection: TE<br>
> - if (preg_match('/\bTE\b/i',<br> > $package['headers_mixed']['Connection'])) {<br> > - return "2b90f772";<br> > - }<br> > -<br> > - return false;<br>
> -}<br> > -<br> > -?><br> > +<?php if (!defined('BB2_CORE')) die('I said no cheating!');<br> > +<br> > +// Analyze user agents claiming to be MSIE<br> > +<br> > +function bb2_msie($package)<br>
> +{<br> > + if (!array_key_exists('Accept', $package['headers_mixed'])) {<br> > + return "17566707";<br> > + }<br> > +<br> > + // MSIE does NOT send "Windows ME" or "Windows XP" in the user agent<br>
> + if (strpos($package['headers_mixed']['User-Agent'], "Windows ME")<br> > !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Windows XP")<br> > !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Windows 2000")<br>
> !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Win32") !==<br> > FALSE) {<br> > + return "a1084bad";<br> > + }<br> > +<br> > + // MSIE does NOT send Connection: TE but Akamai does<br>
> + // Bypass this test when Akamai detected<br> > + if (!array_key_exists('Akamai-Origin-Hop',<br> > $package['headers_mixed']) && preg_match('/\bTE\b/i',<br> > $package['headers_mixed']['Connection'])) {<br>
> + return "2b90f772";<br> > + }<br> > +<br> > + return false;<br> > +}<br> > +<br> > +?><br> ><br> > Modified:<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/version.inc.php<br>
> ===================================================================<br> > ---<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/version.inc.php<br> > 2008-02-28 10:54:49 UTC (rev 6191)<br> > +++<br>
> plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/version.inc.php<br> > 2008-02-29 06:49:43 UTC (rev 6192)<br> > @@ -1,3 +1,3 @@<br> > -<?php if (!defined('BB2_CWD')) die("I said no cheating!");<br>
> -define('BB2_VERSION', "2.0.11");<br> > -?><br> > +<?php if (!defined('BB2_CWD')) die("I said no cheating!");<br> > +define('BB2_VERSION', "2.0.13");<br>
> +?><br> ><br> > Modified:<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/whitelist.inc.ph<br> > p<br> > ===================================================================<br> > ---<br>
<br>> plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/whitelist.inc.ph<br> <br>> p 2008-02-28 10:54:49 UTC (rev 6191)<br> <br>> +++<br> > plog/branches/lifetype-1.2/plugins/badbehavior/bad-behavior/whitelist.inc.ph<br>
<br>> p 2008-02-29 06:49:43 UTC (rev 6192)<br> <br>> @@ -1,56 +1,58 @@<br> > -<?php if (!defined('BB2_CORE')) die('I said no cheating!');<br> > -<br> > -function bb2_whitelist($package)<br>
> -{<br> > - // DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!<br> > -<br> > - // Inappropriate whitelisting WILL expose you to spam, or cause Bad<br> > - // Behavior to stop functioning entirely! DO NOT WHITELIST unless<br>
> you<br> > - // are 100% CERTAIN that you should.<br> > -<br> > - // IP address ranges use the CIDR format.<br> > -<br> > - // Includes four examples of whitelisting by IP address and<br>
> netblock.<br> > - $bb2_whitelist_ip_ranges = array(<br> > - "<a href="http://10.0.0.0/8">10.0.0.0/8</a>",<br> > - "<a href="http://172.16.0.0/12">172.16.0.0/12</a>",<br>
> - "<a href="http://192.168.0.0/16">192.168.0.0/16</a>",<br> > -// "<a href="http://127.0.0.1">127.0.0.1</a>",<br> > - );<br> > -<br> > - // DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!<br>
> -<br> > - // Inappropriate whitelisting WILL expose you to spam, or cause Bad<br> > - // Behavior to stop functioning entirely! DO NOT WHITELIST unless<br> > you<br> > - // are 100% CERTAIN that you should.<br>
> -<br> > - // You should not whitelist search engines by user agent. Use the IP<br> > - // netblock for the search engine instead. See<br> > <a href="http://whois.arin.net/">http://whois.arin.net/</a><br>
> - // to locate the netblocks for an IP.<br> > -<br> > - // User agents are matched by exact match only.<br> > -<br> > - // Includes one example of whitelisting by user agent.<br> > - // All are commented out.<br>
> - $bb2_whitelist_user_agents = array(<br> > - // "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)<br> > It's me, let me in",<br> > - );<br> > -<br> > - // DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!<br>
> -<br> > - // Do not edit below this line<br> > -<br> > - if (!empty($bb2_whitelist_ip_ranges)) {<br> > - foreach ($bb2_whitelist_ip_ranges as $range) {<br> > - if (match_cidr($package['ip'], $range)) return true;<br>
> - }<br> > - }<br> > - if (!empty($bb2_whitelist_user_agents)) {<br> > - foreach ($bb2_whitelist_user_agents as $user_agent) {<br> > - if (!strcmp($package['headers_mixed']['User-Agent'],<br>
> $user_agent)) return true;<br> > - }<br> > - }<br> > - return false;<br> > -}<br> > -<br> > -?><br> > +<?php if (!defined('BB2_CORE')) die('I said no cheating!');<br>
> +<br> > +function bb2_whitelist($package)<br> > +{<br> > + // DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!<br> > +<br> > + // Inappropriate whitelisting WILL expose you to spam, or cause Bad<br>
> + // Behavior to stop functioning entirely! DO NOT WHITELIST unless<br> > you<br> > + // are 100% CERTAIN that you should.<br> > +<br> > + // IP address ranges use the CIDR format.<br>
> +<br> > + // Includes four examples of whitelisting by IP address and<br> > netblock.<br> > + $bb2_whitelist_ip_ranges = array(<br> > + "<a href="http://64.191.203.34/32">64.191.203.34/32</a>", // Digg whitelisted as of 2.0.12<br>
> + "<a href="http://208.67.217.130/32">208.67.217.130/32</a>", // Digg whitelisted as of 2.0.12<br> > + "<a href="http://10.0.0.0/8">10.0.0.0/8</a>",<br> > + "<a href="http://172.16.0.0/12">172.16.0.0/12</a>",<br>
> + "<a href="http://192.168.0.0/16">192.168.0.0/16</a>",<br> > +// "<a href="http://127.0.0.1">127.0.0.1</a>",<br> > + );<br> > +<br> > + // DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!<br>
> +<br> > + // Inappropriate whitelisting WILL expose you to spam, or cause Bad<br> > + // Behavior to stop functioning entirely! DO NOT WHITELIST unless<br> > you<br> > + // are 100% CERTAIN that you should.<br>
> +<br> > + // You should not whitelist search engines by user agent. Use the IP<br> > + // netblock for the search engine instead. See<br> > <a href="http://whois.arin.net/">http://whois.arin.net/</a><br>
> + // to locate the netblocks for an IP.<br> > +<br> > + // User agents are matched by exact match only.<br> > +<br> > + // Includes one example of whitelisting by user agent.<br> > + // All are commented out.<br>
> + $bb2_whitelist_user_agents = array(<br> > + // "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)<br> > It's me, let me in",<br> > + );<br> > +<br> > + // DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER! DANGER!<br>
> +<br> > + // Do not edit below this line<br> > +<br> > + if (!empty($bb2_whitelist_ip_ranges)) {<br> > + foreach ($bb2_whitelist_ip_ranges as $range) {<br> > + if (match_cidr($package['ip'], $range)) return true;<br>
> + }<br> > + }<br> > + if (!empty($bb2_whitelist_user_agents)) {<br> > + foreach ($bb2_whitelist_user_agents as $user_agent) {<br> > + if (!strcmp($package['headers_mixed']['User-Agent'],<br>
> $user_agent)) return true;<br> > + }<br> > + }<br> > + return false;<br> > +}<br> > +<br> > +?><br> ><br> > Modified:<br> > plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php<br>
> ===================================================================<br> > ---<br> > plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php<br> > 2008-02-28 10:54:49 UTC (rev 6191)<br> > +++<br>
> plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php<br> > 2008-02-29 06:49:43 UTC (rev 6192)<br> > @@ -20,7 +20,7 @@<br> > $this->desc = "Bad Behavior for LifeType";<br>
> $this->author = "The Lifetype Project";<br> > $this->db =& Db::getDb();<br> > - $this->version = "20071205";<br> > + $this->version = "20080228";<br>
><br> > $config =& Config::getConfig();<br> > $prefix = Db::getPrefix();<br> ><br> > _______________________________________________<br> > pLog-svn mailing list<br>
> <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br> > <a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br> ><br> ><br>
><br> ><br> > _______________________________________________<br> > pLog-svn mailing list<br> > <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br> > <a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br>
><br> ><br> ><br> ><br> <br> <br>--<br> Jon Daley<br> <a href="http://jon.limedaley.com/">http://jon.limedaley.com/</a><br> <br> No idea that sits in your head is there rent free.<br> If the idea is not "useful", get rid of it.<br>
-- Dr. Richard Farmer<br> <br>_______________________________________________<br> pLog-svn mailing list<br> <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br> <a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br>
</blockquote></div><br>