Skip to content

Instantly share code, notes, and snippets.

@bastosmichael
Last active December 16, 2015 04:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bastosmichael/5376293 to your computer and use it in GitHub Desktop.
Save bastosmichael/5376293 to your computer and use it in GitHub Desktop.
Blocking WordPress Botnet for Nginx Configurations
location / {
try_files $uri $uri/ /index.php?$args;
# block WP Botnet workstations
deny 31.184.238.38;
deny 178.151.216.53;
deny 91.224.160.143;
deny 195.128.126.6;
deny 85.114.133.118;
deny 177.125.184.8;
deny 89.233.216.203;
deny 89.233.216.209;
deny 109.230.246.37;
deny 188.175.122.21;
deny 46.119.127.1;
deny 176.57.216.198;
deny 173.38.155.22;
deny 67.229.59.202;
deny 94.242.237.101;
deny 209.73.151.64;
deny 212.175.14.11;
deny 78.154.105.23;
deny 50.116.27.19;
deny 195.128.126.114;
deny 78.153.216.56;
deny 31.202.217.135;
deny 204.93.60.182;
deny 173.38.155.8;
deny 204.93.60.75;
deny 50.117.59.3;
deny 209.73.151.229;
deny 216.172.147.251;
deny 204.93.60.57;
deny 94.199.51.7;
deny 204.93.60.185;
}
@markoheijnen
Copy link

If it was a 1 on 1 copy from the .htaccess then the first line should be:

location = /wp-login.php {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment