开放注册一天之后,出现了50多个机器注册的账户(不妨称为“马甲”——实际上,这些用户可能会在评论区发广告)。画面实在太美。
于是根据日志在前端加入了IP封禁,又在登录界面加入了 SI Captcha 验证码,结果在半天之内还是出现了不到10个马甲帐号。我觉得可能是WP的注册机制存在漏洞。不论如何,我又手动加入了个注册验证,不知有没有用。
不过还好,我刚刚才把网站的验证邮件发送功能配置完。也就是说,在此之前注册的所有用户无法完成激活,所以无法发表评论。
然而不知过几天会不会带来更多的广告……
参考资料
- Nginx Block And Deny IP Address OR Network Subnets
- 分享我的 WordPress 垃圾评论 IP 封禁列表
- Stop Forum Spam >> Downloads
以及,以下是我目前使用的黑名单。由于篇幅太长,因此我把它折叠起来了。
deny 104.144.7.21; deny 108.62.155.42; deny 136.0.96.223; deny 151.236.26.153; deny 172.85.101.222; deny 172.85.102.158; deny 172.85.103.242; deny 173.208.12.81; deny 176.9.167.166; deny 185.45.13.132; deny 188.215.22.18; deny 188.215.22.22; deny 195.154.168.130; deny 205.164.30.186; # US deny 205.164.30.36; deny 23.19.127.54; deny 23.19.153.176; deny 23.19.155.170; deny 23.19.188.152; deny 23.19.188.184; deny 23.229.9.24; deny 23.250.11.122; deny 23.250.34.48; deny 23.27.21.19; deny 37.203.212.118; deny 45.59.22.174; deny 45.59.22.220; deny 45.59.22.41; deny 45.59.27.160; deny 45.59.27.36; deny 45.59.29.93; deny 46.102.99.253; deny 46.246.126.146; deny 5.175.129.136; deny 5.175.177.218; deny 94.242.239.81; deny 94.249.240.45; # http://cnzhx.net/blog/share-wp-spammers-ip-blacklist/; deny 1.161.134.251; deny 1.161.136.215; deny 1.161.137.60; deny 1.161.139.145; deny 1.161.139.158; deny 1.161.140.56; deny 1.161.143.15; deny 1.161.143.140; deny 1.161.143.163; deny 1.161.148.244; deny 1.161.149.162; deny 12.104.222.17; deny 14.139.60.213; deny 15.185.99.30; deny 23.19.30.0/24; deny 23.19.68.66; deny 23.19.127.240; deny 23.19.152.113; deny 23.19.229.249; deny 23.19.229.209; deny 24.20.149.202; deny 24.140.47.166; deny 24.217.35.18; deny 27.2.0.47; deny 27.155.43.142; deny 27.155.122.206; deny 27.156.97.149; deny 27.159.0.0/16; deny 31.3.225.169; deny 31.184.238.23; deny 31.184.238.34; deny 31.187.9.225; deny 31.214.170.0/24; deny 31.214.169.0/24; deny 31.214.133.0/24; deny 31.214.144.0/24; deny 31.214.201.251; deny 31.214.145.239; deny 31.214.145.236; deny 37.220.1.114; deny 37.220.7.250; deny 37.220.8.82; deny 37.220.8.122; deny 41.158.128.190; deny 41.162.18.35; deny 41.190.16.17; deny 42.83.47.5; # Russian deny 46.17.96.0/24; deny 46.17.97.0/24; deny 46.17.98.0/24; deny 46.17.99.0/24; deny 46.17.100.0/24; deny 46.17.101.107; deny 46.21.144.176; deny 46.49.81.17; deny 46.51.224.252; deny 46.73.151.11; deny 46.73.181.4; deny 46.73.181.109; deny 46.73.192.36; deny 46.98.143.96; deny 46.105.30.42; deny 46.119.116.4; deny 46.200.252.147; deny 46.201.88.22; deny 46.246.72.201; deny 46.251.228.99; deny 46.251.228.224; deny 46.251.237.178; deny 46.253.195.122; deny 49.212.38.134; deny 49.212.56.71; deny 50.16.220.94; deny 50.17.72.168; deny 59.57.14.76; deny 50.57.28.248; deny 50.57.134.15; deny 58.16.145.71; deny 58.56.31.117; deny 58.56.31.123; deny 58.68.138.200; deny 58.119.6.196; deny 58.246.200.114; deny 59.44.204.198; deny 59.56.19.86; deny 59.57.14.70; deny 59.57.14.91; deny 59.57.14.121; deny 59.57.14.123; deny 59.57.15.89; deny 59.58.154.113; deny 59.58.155.150; deny 59.58.156.78; deny 59.60.123.88; deny 59.106.177.23; deny 59.108.29.183; deny 59.125.82.23; deny 60.172.190.163; deny 60.184.56.41; deny 60.184.56.84; deny 60.184.56.241; deny 60.184.58.17; deny 60.184.58.119; deny 60.184.58.236; deny 60.184.59.9; deny 60.184.59.209; deny 60.184.61.3; deny 60.184.61.43; deny 60.184.62.67; deny 60.184.62.157; deny 60.184.63.26; deny 61.7.214.42; deny 61.54.26.44; deny 61.93.130.39; deny 61.146.255.137; deny 61.164.87.130; deny 61.190.28.166; deny 61.191.188.177; deny 62.149.25.80; deny 66.199.151.206; deny 66.219.22.151; deny 67.23.164.15; deny 67.158.63.124; deny 67.181.57.251; deny 67.228.53.122; deny 68.192.223.159; deny 69.163.96.2; deny 69.197.136.84; deny 69.249.228.179; deny 69.252.120.90; deny 70.38.90.214; deny 70.145.154.212; deny 71.249.165.73; deny 72.64.146.73; deny 72.89.149.175; deny 74.121.191.74; deny 74.221.211.129; deny 74.221.215.204; deny 75.69.240.240; deny 75.101.153.212; deny 75.101.166.8; deny 75.147.206.177; deny 76.74.239.152; deny 76.164.222.35; deny 76.164.223.77; deny 77.65.48.239; deny 77.245.155.29; deny 77.247.181.163; deny 77.247.181.165; deny 78.47.36.187; deny 78.133.124.146; deny 79.160.210.36; deny 79.170.50.0/24; deny 80.90.151.1; deny 80.194.50.116; deny 80.243.181.34; deny 80.243.191.66; deny 80.243.191.114; deny 80.243.191.178; deny 80.251.133.163; deny 80.251.133.165; deny 81.0.104.238; deny 81.0.254.172; deny 81.94.192.121; deny 82.193.117.23; deny 82.151.208.91; deny 82.195.232.218; deny 82.200.55.142; deny 82.206.136.75; deny 83.26.95.222; deny 83.149.126.37; deny 83.170.100.116; deny 83.170.113.110; deny 83.234.218.182; deny 84.14.203.110; deny 84.237.33.3; deny 84.241.38.158; deny 84.246.226.180; deny 85.18.238.10; deny 85.25.95.90; deny 85.92.159.84; deny 85.13.128.127; deny 85.18.238.10; deny 85.186.176.127; deny 85.195.138.32; deny 85.195.138.33; deny 85.222.91.43; deny 85.249.47.182; deny 88.255.54.12; deny 86.120.31.185; deny 87.98.177.156; deny 88.81.213.46; deny 88.131.67.22; deny 88.190.24.155; deny 88.190.26.186; deny 88.190.33.224; deny 88.190.241.42; deny 89.162.67.22; deny 89.169.1.30; deny 89.223.34.67; deny 89.252.58.37; deny 91.93.132.210; deny 91.121.66.28; deny 91.121.156.106; deny 91.124.1.24; deny 91.124.155.92; deny 91.124.250.173; deny 91.137.155.2; deny 91.201.64.4; deny 91.201.64.8; deny 91.205.248.207; deny 91.207.6.94; deny 91.207.7.254; deny 91.207.8.34; deny 91.210.106.252; deny 91.212.226.136; deny 91.217.178.0/24; deny 91.224.246.73; deny 91.224.246.130; deny 91.224.247.82; deny 91.237.249.63; deny 92.113.45.159; deny 92.243.22.79; deny 93.78.214.219; deny 93.95.99.178; deny 93.166.121.107; deny 93.182.135.139; deny 93.182.156.14; deny 93.182.159.33; deny 94.24.200.48; deny 94.41.108.214; deny 94.181.162.46; deny 94.181.169.82; deny 94.228.35.219; deny 95.31.20.162; deny 95.31.214.137; deny 95.31.216.41; deny 95.65.27.202; deny 95.211.10.151; deny 95.211.45.66; deny 96.44.189.177; deny 101.255.12.26; deny 107.22.199.240; deny 103.22.164.200; deny 107.20.161.197; deny 107.22.219.19; deny 108.62.16.171; deny 108.62.16.158; deny 108.62.202.217; deny 108.171.243.0/24; deny 109.73.70.98; deny 109.73.70.114; deny 109.73.76.45; deny 109.73.78.98; deny 109.127.5.38; deny 109.163.230.189; deny 109.200.6.202; deny 109.200.11.251; deny 109.23.0.0/16; deny 110.77.193.249; deny 110.85.4.99; deny 110.85.72.216; deny 110.85.75.64; deny 110.85.100.17; deny 110.85.104.75; deny 110.85.106.82; deny 110.85.106.154; deny 110.86.165.182; deny 110.137.253.236; deny 110.180.86.212; deny 110.164.3.0/24; deny 111.85.238.53; deny 111.85.238.60; deny 111.85.239.126; deny 111.85.239.235; deny 111.93.83.146; deny 112.101.64.208; deny 112.197.8.50; deny 113.34.75.69; deny 113.53.252.131; deny 113.84.72.117; deny 113.106.194.221; deny 114.255.217.10; # 貌似是国内地址 deny 115.201.82.19; deny 115.201.82.128; deny 115.201.89.40; deny 115.203.141.148; deny 115.207.130.249; deny 115.207.133.86; deny 115.207.134.19; deny 115.207.136.195; deny 115.207.136.142; deny 115.207.141.17; deny 115.207.141.55; deny 115.208.0.0/16; deny 115.238.232.209; deny 117.21.225.66; deny 117.26.107.22; deny 117.26.118.176; deny 117.27.138.41; deny 117.27.138.68; deny 117.27.138.176; deny 117.79.235.90; deny 117.89.213.121; deny 118.1.75.217; deny 118.97.69.148; deny 118.97.209.218; deny 118.103.35.50; deny 118.132.86.80; deny 118.174.132.234; deny 119.57.77.163; deny 119.62.128.172; deny 119.75.23.81; deny 119.235.54.29; deny 120.33.244.181; deny 120.37.208.27; deny 120.37.210.86; deny 120.37.210.92; deny 120.43.4.116; deny 120.43.7.123; deny 120.43.21.52; deny 120.68.104.162; deny 120.84.15.72; deny 120.136.26.194; deny 121.33.190.167; deny 121.205.90.97; deny 121.205.247.79; deny 121.205.248.0/24; deny 121.243.47.242; deny 122.142.201.5; deny 122.142.218.171; deny 122.155.0.135; deny 122.194.11.208; deny 122.205.95.14; deny 122.225.68.113; deny 122.225.68.125; deny 122.226.113.54; deny 122.252.183.60; deny 123.62.6.58; deny 123.65.108.44; deny 123.97.97.33; deny 123.97.108.133; deny 123.97.127.82; deny 123.127.98.130; deny 125.21.51.53; deny 125.88.75.139; deny 125.89.161.189; deny 125.91.93.166; deny 128.204.201.97; deny 128.204.207.82; deny 134.255.240.0/24; deny 173.236.43.2; deny 140.98.210.233; deny 141.105.65.156; deny 142.169.1.233; deny 146.219.19.160; deny 146.0.73.231; deny 146.0.74.103; deny 146.185.23.179; deny 149.3.138.34; deny 164.77.196.78; deny 164.151.130.232; deny 168.143.89.90; deny 168.187.42.100; deny 173.0.50.204; deny 173.81.70.126; deny 173.203.199.45; deny 173.208.47.47; deny 173.208.48.237; deny 173.208.70.198; deny 173.213.83.0/24; deny 173.213.90.171; deny 173.213.113.254; deny 173.230.133.35; deny 173.234.19.68; deny 173.234.165.105; deny 173.234.177.32; deny 173.234.183.101; deny 173.242.124.212; deny 173.245.71.115; deny 173.254.216.68; deny 174.36.133.45; deny 175.42.90.101; deny 175.44.30.13; deny 175.139.208.117; deny 176.8.88.41; deny 176.8.90.7; deny 176.31.18.156; deny 176.31.103.65; deny 176.31.248.146; deny 176.61.140.28; deny 176.61.140.134; deny 176.61.141.66; deny 176.61.143.58; deny 176.65.164.111; deny 176.227.198.139; deny 177.19.134.66; deny 178.33.53.246; deny 178.63.199.249; deny 178.73.221.224; deny 178.137.82.160; deny 178.137.160.135; deny 178.137.160.169; deny 178.238.232.244; deny 178.238.232.234; deny 178.239.58.152; deny 180.106.75.190; deny 180.149.53.35; deny 180.246.115.138; deny 182.40.72.159; deny 182.50.8.213; deny 182.50.64.84; deny 182.50.64.80; deny 182.163.72.148; deny 183.16.202.238; deny 183.82.97.111; deny 184.72.217.6; deny 184.82.226.212; deny 184.106.139.135; deny 184.168.67.209; deny 184.173.123.109; deny 186.200.55.90; deny 186.238.48.8; deny 187.1.172.142; deny 187.58.200.162; deny 187.115.172.82; deny 187.141.81.182; deny 188.92.75.82; deny 188.92.75.244; deny 188.94.163.68; deny 188.143.232.31; deny 188.143.232.113; deny 188.143.232.210; deny 188.163.69.48; deny 188.165.90.231; deny 188.227.162.130; deny 188.227.166.154; deny 188.227.177.2; deny 188.227.181.211; deny 188.227.183.164; deny 188.241.127.40; deny 189.17.169.186; deny 189.71.188.212; deny 189.115.141.126; deny 189.125.212.71; deny 190.82.105.114; deny 190.124.251.136; deny 190.202.87.134; deny 192.162.100.69; deny 193.34.144.193; deny 193.105.210.84; deny 193.107.16.32; deny 193.169.86.33; deny 194.36.161.212; deny 194.126.14.101; deny 194.126.21.204; deny 194.170.28.241; deny 195.2.240.99; deny 195.62.25.247; deny 195.62.25.248; deny 195.62.25.249; deny 195.62.25.253; deny 195.62.25.252; deny 195.95.210.219; deny 195.138.88.105; deny 195.162.69.199; deny 196.200.80.4; deny 198.143.138.138; deny 199.15.118.0/24; deny 199.15.234.0/24; deny 199.19.109.13; deny 199.30.88.151; deny 199.83.95.205; deny 199.119.225.29; deny 199.168.142.166; deny 200.26.114.230; deny 200.51.203.200; deny 200.88.126.20; deny 200.113.109.74; deny 200.141.202.162; deny 200.247.169.179; deny 200.251.58.190; deny 201.7.143.34; deny 201.33.37.6; deny 201.90.8.115; deny 202.98.123.126; deny 202.105.113.132; deny 202.107.44.108; deny 202.248.222.8; deny 203.140.68.134; deny 203.142.66.199; deny 203.186.131.38; deny 204.188.241.226; deny 204.236.213.168; deny 205.213.195.70; deny 206.53.155.87; deny 208.71.175.223; deny 208.87.35.195; deny 208.91.129.157; deny 208.91.129.217; deny 210.101.131.231; deny 210.158.6.201; deny 210.164.226.243; deny 210.177.210.61; deny 211.100.47.147; deny 212.0.71.195; deny 212.26.44.100; deny 212.45.5.172; deny 212.85.1.28; deny 212.111.208.2; deny 212.138.47.15; deny 212.156.98.206; deny 213.27.232.210; deny 213.52.195.238; deny 213.79.94.21; deny 213.159.241.41; deny 213.159.241.60; deny 213.171.204.157; deny 213.218.138.20; deny 213.246.36.90; deny 213.251.169.115; deny 216.24.199.58; deny 216.59.18.23; deny 216.144.244.146; deny 216.221.193.246; deny 216.245.198.202; deny 217.21.116.18; deny 217.172.180.18; deny 217.218.230.71; deny 218.6.8.19; deny 218.6.12.0/24; deny 218.6.15.112; deny 218.6.16.226; deny 218.9.55.116; deny 218.66.250.106; deny 218.83.175.129; deny 218.91.151.54; deny 218.208.97.226; deny 218.244.180.196; deny 218.66.250.106; deny 219.122.38.109; deny 219.142.12.54; deny 220.100.93.250; deny 220.113.9.169; deny 220.161.150.70; deny 220.161.150.114; deny 220.161.150.130; deny 220.161.154.134; deny 220.243.7.126; deny 220.255.2.85; deny 221.130.162.48; deny 221.130.162.51; deny 221.172.79.191; deny 221.194.177.167; deny 221.194.179.34; deny 221.225.215.141; deny 222.45.72.124; deny 222.50.56.52; deny 222.77.224.9; deny 222.77.224.88; deny 222.77.226.82; deny 222.77.227.232; deny 222.77.228.212; deny 222.80.22.26; deny 222.80.24.171; deny 222.171.60.156; deny 222.200.180.67; deny 222.222.38.2; deny 223.19.105.185;