admin管理员组

文章数量:1122846

I installed the plugin Akismet to filters out spam comments. However, it shows that:

Your site can’t connect to the Akismet servers.

Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to our guide about firewalls.

The status of my firewall is as the followings:

$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
80/tcp                     ALLOW       Anywhere                  
80/tcp (v6)                ALLOW       Anywhere (v6)  

It still doesn't work even I disable my ufw.

How do I make it work?

I installed the plugin Akismet to filters out spam comments. However, it shows that:

Your site can’t connect to the Akismet servers.

Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to our guide about firewalls.

The status of my firewall is as the followings:

$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
80/tcp                     ALLOW       Anywhere                  
80/tcp (v6)                ALLOW       Anywhere (v6)  

It still doesn't work even I disable my ufw.

How do I make it work?

Share Improve this question asked Aug 31, 2020 at 12:39 SparkAndShineSparkAndShine 2332 gold badges5 silver badges14 bronze badges 6
  • "Please contact your host..." - are you sure which port Akismet is using? – Steve Commented Aug 31, 2020 at 22:08
  • @Steve, it is 80, as mentioned in the guide. – SparkAndShine Commented Sep 1, 2020 at 3:47
  • There is code in class.akismet.php which will try and upgrade the connection to HTTPS, so it would be worth opening 443 too. But it should fall back to HTTP if that didn't work. Seems silly to me that use plain HTTP at all though, and don't document that it can use HTTPS. – Rup Commented Sep 1, 2020 at 10:44
  • Do other outbound requests from WordPress work, e.g. core and plugin update checks? Could it be something else preventing the request e.g. SELinux or similar? Or can you curl the API from the machine's shell, i.e. could this be blocked by a firewall at the host outside the machine itself? – Rup Commented Sep 1, 2020 at 10:46
  • @Rup, I failed to upgrade WP. It warned me mine, 5.3.2, is already the latest version of WordPress. Actually, the newest version is 5.5.1. – SparkAndShine Commented Sep 3, 2020 at 3:18
 |  Show 1 more comment

1 Answer 1

Reset to default 0

You may try disabling the jetpack firewall. I had the similar issue with one of my blogs and I saw that the settings are conflicting with jetpack plugins.

本文标签: pluginsWordPress Can’t connect to the Akismet servers