In this article we will tell you how to use the XML RPC in your website if your host is blocking it, with 2 different methods. Many times free web hosts block the use of XML RPC on your hosting account, which results in improper functioning and denial of useful services on your website.
>>So we have found two surely working ways to use XML RPC on web hosts who block it.
But first let’s understand what is XML RPC and why is it useful.
(If you know about XML RPC and its uses, then you can skip this part and move to the solutions of using XML RPC on blocked hosts.)
What is XML RPC:
>> XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism. “XML-RPC” also refers generically to the use of XML for remote procedure call, independently of the specific protocol.
Uses of XML RPC:
>> XML-RPC can be used to transport objects or structures both as input and as output parameters. The parameter types allow nesting of parameters into maps and lists, thus larger structures can be transported.
Some common uses of XML-RPC in WordPress:
(These will not work properly if XML RPC is blocked by your web host. So use it to identify blocked XML RPC)
- Using wordpress Android and IOS app with your self hosted wordpress website, you will not be able to login into the website from the app if XMLRPC is blocked by web host.
- Very popular and super useful Jetpack plugin will not be able to connect, if XML RPC is blocked.
- External apps which are used to add new content or modify the content of the website rely on XMLRPC to connect to the site.
>>Two 100% working ways to use XML RPC on web hosts who block it:
- First method (Easier and Quicker):
If you are not able to connect your website to the app by using the normal domain, then try adding /xmlrpc.php at the end of your domain and try again
Example: If you have a website www.youdomain.com and you are not able to connect it with app, then try entering www.yourdomain.com/xmlrpc.php as the web address.
This matter works most of the times (may be you have to try it for a few times before it works), however if it does not work then check out the next method.
(Note: If you connect the wordpress Android/iOS app with this method, then it is likely that it will not be able to refresh the stats and posts or add new posts initially, but wait for sometime and it will start working as it should.)
. . . .
Get More Paid apps like this in your inbox!
Viewing an AMP and can’t see email form? Please click here.
. . . .
- Second method (Try if first method doesn’t work even after a few tries):
This method involves renaming the xmlrpc file so that the web host cannot recognise and block it.
- Go to the web host’s file manager.
- Find xmlrpc.php file in the wordpress folder of a website.
- Rename it to anything else. Remember to keep the extension same .php. Do not change the extension. For example, keep it anyname.php .
- Now go to your wordpress admin panel and, search and install the plugin Rename XMLRPC plugin.
- After installing go to play in editor and edit its file, in the code you will see instructions to make changes in the line to modify the name of xmlrpc file to some new name (which you had set in Step 3 ).
- Click Save and then activate the plugin.
- Try to connect the app normally again with your domain, if it doesn’t work then try www.yourdomain.com/newnameofxmlrpc.php as did in method 1.
(Note: Here “app” refers to any app with which you are trying to connect your website. This includes the WordPress app.)
That’s it. We have actually tested both the methods, and they work. So now you can enjoy the working xmlrpc file. If these methods don’t work for you, then it might be possible that you didn’t execute the instructions correctly. Just mention your problem in comments below, and we shall get in touch with you.
Hope you liked the article, and please give your views in comments. If you found this useful, then why not share it with your friends too with the social sharing buttons below :). And don’t forget to follow the site via. email to get more techtips and free downloads to paid premium apps/games.
Keep Visiting. Get Techy.