Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12488

Reply To: Your website needs to be publicly accessible to use Jetpack: site_inaccessible

$
0
0

Hi Admin,

Thanks, but I think it is actually a problem with the above code blocking Jetpack when it is passing through Cloudflare.  Putting Cloudflare in to ‘development mode’ (in effect pausing it) didn’t seem to work for me. I tried various things but in the end found that adding Cloudflare’s IPs (or at least the range that the blocked request was coming from) to the code meant everything worked fine.  So here is my updated code:

<FilesMatch "^(xmlrpc\.php|wp-trackback\.php)">
Order Deny,Allow
# Whitelist Jetpack/ Automattic CIDR IP Address Blocks
Allow from 192.0.64.0/18
Allow from 209.15.0.0/16
Allow from 66.155.0.0/17
# Whitelist Cloudflare IPs
Allow from 108.162.192.0/18
Deny from all
</FilesMatch>

A full list of Cloudflare’s IP address in the correct CIDR format for adding to teh code can be found here: https://www.cloudflare.com/ips

All of the Jetpack requests for me site were coming from the one IP address (108.162.221.32) so I only added this range. Obviously other requests may come from other IPs and so the code above may need extra or different ‘allow from’ lines.

Cheers, James

  • This reply was modified 11 hours, 33 minutes ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12488

Trending Articles