Stopping spam registrations

https://wordpress.stackexchange.com/a/170233

Added this to .htaccess



# force pdfs to be saved to disc

  ForceType application/octet-stream
  Header set Content-Disposition attachment


RewriteEngine On
#RewriteCond %{HTTP_HOST} ^(.*)rosevilleleeds\.org\.uk$ [NC]
#RewriteRule ^(.*)$ https://www.chapeltowncohousing.org.uk/$1 [R=301,L]

#RewriteCond %{HTTP_HOST} ^chapeltowncohousing\.org\.uk$ [NC]
#RewriteRule ^(.*)$ https://www.chapeltowncohousing.org.uk/$1 [R=301,L]

# Fix for move from old /2012/ folder to /live/ folder
RewriteRule ^2012/(.*)$ https://www.chapeltowncohousing.org.uk/$1 [R=301,L]


### start of maintenance mode
# To turn on maintenance mode, set true in the following line:

SetEnvIfNoCase Request_URI "(.*)" MAINTENANCE=false

# Add IP addresses to the whitelist
RewriteCond %{REMOTE_ADDR} !^86\.0\.150\.29
RewriteCond %{REMOTE_ADDR} !^81\.130\.194\.200
RewriteCond %{REMOTE_ADDR} !^86\.7\.90\.138
RewriteCond %{REMOTE_ADDR} !^82\.26\.7\.202

RewriteCond %{ENV:MAINTENANCE} ^true$
RewriteCond %{REQUEST_URI} !^/live/maintenance/maintenance\.php$
RewriteCond %{REQUEST_FILENAME} !.css$
RewriteCond %{REQUEST_FILENAME} !.png$
RewriteCond %{REQUEST_FILENAME} !.jpg$
RewriteCond %{REQUEST_FILENAME} !.gif$
RewriteRule ^(.*)$ https://www.chapeltowncohousing.org.uk/live/maintenance/maintenance.php [R=307,L]

### end of maintenance mode

# Send /loanstock to /the-project/money/loanstock/
# RewriteRule ^loanstock/?$ https://www.chapeltowncohousing.org.uk/the-project/money/loanstock/ [R=301,L]
RewriteRule ^loanstock/?$ https://www.chapeltowncohousing.org.uk/the-project/money/investing-in-chaco/ [R=301,L]

# Send /coop-loanstock to /the-project/money/coop-loanstock/
RewriteRule ^coop-loanstock/?$ https://www.chapeltowncohousing.org.uk/the-project/money/coop-loanstock/ [R=301,L]

# Send /about to /about/about-chaco/
RewriteRule ^about/?$ https://www.chapeltowncohousing.org.uk/about/about-chaco/ [R=301,L]

# Send /chaco-people to /members-area/task-groups/communications/chaco-people/
RewriteRule ^chaco-people/?$ https://www.chapeltowncohousing.org.uk/members-area/task-groups/communications/chaco-people/ [R=301,L]

# Send /induction1 to /vision-principles-values-and-structure/
RewriteRule ^induction1/?$ https://www.chapeltowncohousing.org.uk/vision-principles-values-and-structure/ [R=301,L]

# Send /induction7 to /communications-and-info/
RewriteRule ^induction7/?$ https://www.chapeltowncohousing.org.uk/communications-and-info/ [R=301,L]

# Send /members-area/decision-log to /members-area/essential-info/decision-log/
RewriteRule ^members-area/decision-log/?$ https://www.chapeltowncohousing.org.uk/members-area/essential-info/decision-log/ [R=301,L]

#BLOCK SPAM REGISTRATION REQUESTS (wp-login.php?action=register) //v5.80

RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*(wp-login.php\?action=register).* [NC]
RewriteRule ^(.*)$ - [F,L]




# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress