Making WordPress.org


Ignore:
Timestamp:
03/27/2019 09:37:53 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory, Author Card: Properly wrap zip URLs, update the list of domains that are often abused.

Props Ipstenu.
Fixes #4315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php

    r8495 r8543  
    8181        'medium.com',
    8282        'yahoo.com',
    83         'mail.com',
     83        '@mail.com',
    8484        'example.org',
     85        'wordpress.com',
     86    ];
     87
     88    /**
     89     * List of known problematic IPs
     90     *
     91     * @var array
     92     */
     93    public static $iffy_ips = [
     94        '2.240.',
     95        '2.241.',
     96        '5.102.170.',
     97        '5.102.171.',
     98        '38.78.',
     99        '47.15.',
     100        '49.50.124.',
     101        '65.33.104.38',
     102        '71.41.77.202',
     103        '76.73.108.',
     104        '80.131.192.168',
     105        '87.188.',
     106        '91.228.',
     107        '91.238.',
     108        '94.103.41.',
     109        '109.123.',
     110        '110.55.1.251',
     111        '110.55.4.248',
     112        '116.193.162.',
     113        '119.235.251.',
     114        '159.253.145.183',
     115        '173.171.9.190',
     116        '173.234.140.18',
     117        '188.116.36.',
     118        '217.87.',
    85119    ];
    86120
     
    188222            }
    189223
     224            // URLs and domains that are often abused.
    190225            foreach ( self::$weird_urls as $url ) {
    191226                if ( false !== stripos( $author->user_url, $url ) ) {
Note: See TracChangeset for help on using the changeset viewer.