Hi guys,
I’m having problems getting Jetpack to connect to WordPress and it seems this is because the above code is blocking the connection. Seems that Jetpack might be using some additional IP addresses now. Can you please update the above code accordingly?
Here is the relevant bit from my log files:
[403 GET / HEAD Request: September 13, 2015 7:48 am]
Event Code: BFHS – Blocked/Forbidden Hacker or Spammer
Solution: N/A – Hacker/Spammer Blocked/Forbidden
REMOTE_ADDR: 108.162.221.32
Host Name: 108.162.221.32
SERVER_PROTOCOL: HTTP/1.1
HTTP_CLIENT_IP:
HTTP_FORWARDED:
HTTP_X_FORWARDED_FOR: 209.15.21.127
HTTP_X_CLUSTER_CLIENT_IP:
REQUEST_METHOD: GET
HTTP_REFERER:
REQUEST_URI: /xmlrpc.php?for=jetpack
QUERY_STRING:
HTTP_USER_AGENT: Jetpack by WordPress.com
Thanks, James
———————————-
Edit: No wait, this appears to be a Cloudflare related problem. Any suggestions please?