⌈⌋ branch:  freshcode


Check-in [792720840e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Recent updates to basic spam blacklist.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:792720840e7d6779bcd57a38ba2d0cc77a53d794
User & Date: mario 2017-01-31 18:42:53
Context
2017-01-31
18:43
Additional howto/comments on login page regarding `lock` field requiring proper password hash or OpenID handle. check-in: f21257ed67 user: mario tags: trunk
18:42
Recent updates to basic spam blacklist. check-in: 792720840e user: mario tags: trunk
2016-11-03
21:29
Hash any literal passwords. check-in: 322785403d user: mario tags: trunk
Changes

Changes to aux.php.

331
332
333
334
335
336
337
338
339
340

341
342
343
344
345
346
347

/**
 * Trivial check against well-known project spam.
 *
 */
function data_blacklisted($release) {
    $rules = array(
        "submitter" => "/wilmix j/",
        "homepage" => "/wilmix7|zeesmovie|softwarereviews/",
        "name" => "/DOLLAR|JDollar|Jehovah|Millionaire *s/",

    );
    foreach ($rules as $field => $rx) {
        if (preg_match($rx, $release[$field])) {
            return TRUE;
        }
    }
    return false;







|
|

>







331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348

/**
 * Trivial check against well-known project spam.
 *
 */
function data_blacklisted($release) {
    $rules = array(
        "submitter" => "/wilmix j/i",
        "homepage" => "~wilmix|zeesmovie|softwarereviews|diclofenac|\/\/buy-~i",
        "name" => "/DOLLAR|JDollar|Jehovah|Millionaire *s/",
        "description" => "/viagra|levitra|tetracycline*s|quickbooks/",
    );
    foreach ($rules as $field => $rx) {
        if (preg_match($rx, $release[$field])) {
            return TRUE;
        }
    }
    return false;