geerlingguy / jeffgeerling-com

Drupal Codebase for JeffGeerling.com
https://www.jeffgeerling.com
GNU General Public License v2.0
41 stars 2 forks source link

CleanTalk module keeps blocking all comment form submissions #109

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago

It seems that maybe CleanTalk is not passing through the correct IP address for form submissions, because my server IP (104.236.203.61) keeps getting blocked due to thousands of spam submissions per day.

In Drupal 7, it seemed to work correctly, passing through the right IP address for end users who were submitting forms. But in Drupal 8 it doesn't seem to work right.

I've opened upstream issue Drupal 8 version doesn't account for reverse_proxy settings?, hopefully it can be resolved quickly!

geerlingguy commented 4 years ago

Examples—notice the IP is always the same:

Screen Shot 2020-06-06 at 10 24 43 AM

There's a new patch available that may help.

geerlingguy commented 4 years ago

Patch URL: https://www.drupal.org/files/issues/2020-06-03/Upd__Helper__ip_get%28%29_adapted_for_Drupal_8_.patch

geerlingguy commented 4 years ago

Leaving open for testing.

geerlingguy commented 4 years ago

Early testing result is good...

Screen Shot 2020-06-06 at 11 25 41 AM
geerlingguy commented 4 years ago

The patch is working great; logs are showing correct IPs now:

Screen Shot 2020-06-06 at 1 46 56 PM