Wordpress Jetpack Support Help Access to xmlrpc.php File

#1
Hello guys,

How do I enable Jetpack support on OLS? I have tried whitelisting Jetpack's IP addresses via .htaccess file and the firewall inside OLS control panel but still Jetpack is not able to access the xmlrpc.php. Here is what I did to the .htaccess file where XXX.XXX.XXX.XXX are Jetpack's IP addresses.

<Files xmlrpc.php>
order deny,allow
deny from all
allow from XXX.XXX.XXX.XXX
allow from XXX.XXX.XXX.XXX
allow from XXX.XXX.XXX.XXX
</Files>
 
Last edited:

lsqtwrk

Administrator
#2
Hi,

Please check this page


basically use rewrite cond and rewrite rule


Code:
RewriteCond %{REMOTE_ADDR} !^111\.111\.111\.111 [OR]

RewriteCond %{REMOTE_ADDR} !^222\.222\.222\.222 [OR]

RewriteCond %{REMOTE_ADDR} !^333\.333\.333\.333

RewriteRule xmlpc.php$ - [F,L]
 
#3
Thanks for your response. Can you help me create a rewrite condition for this set of IP addresses?

122.248.245.244/32
54.217.201.243/32
54.232.116.4/32
192.0.80.0/20
192.0.96.0/20
192.0.112.0/20
195.234.108.0/22
192.0.96.202/32
192.0.98.138/32
192.0.102.71/32
192.0.102.95/32

Also what about combination of range is there a shortcut? Lets say

=> 192.0.64.1 to 192.0.127.254
=> 195.0.0.0 to 195.234.111.255
 
Last edited:

lsqtwrk

Administrator
#4
If you have that many IPs , try this way


then check the KB page , use the context

set URI to /xmlpc.php
location to $DOC_ROOT/xmlpc.php

access denied to all

access allowed to your IP list
 
Top