Forums

XML-RPC blocked by host.

  1. I know there are a ton of topics already, but my problem isn't covered in any of them. It is this:

    My hosting company, Namesco, has barred access to the the xmlrpc.php filename because they reckon that a. no one uses it and b. it's easy to hack. They suggest that I "simply rename the file to something like 'xmlrpc_post.php' and reference that script instead in your posting service."

    So my dumb-arse, newbie question is, can Wordpress for iPhone be made to consult a differently named file?

  2. We talked about adding in a manual over-ride of sorts, but right now I believe it requires the default path.

    Have you considered a new host ? :)

  3. Ah - this is interesting. This might be the same reason mine doesn't work either.

    I am with NamesCo - but can only sing their praises. They are truly fabulous! I have over 70 domains hosted with them. I would dump the WordPress for iPhone app rather than change hosts. And I am sure a lot of others would feel the same.

    Surely there MUST be a better solution?

    C

  4. Would a name-change like this solve this problem in 99% of cases or are there other considerations? It should be possible to change this and make a manual override - I will do some checking on the complexity of this and get back to you.

    Meantime, if anyone has an idea of the number (or percentage) of users facing this issue, that would be a useful metric...

  5. If you change the name of the xmlrpc.php file then you'll need to update the RSD location to match. RSD (really simple discovery) is the discovery mechanism that many XML-RPC clients (including the iPhone app) use to find out what URL to send XML-RPC queries to for your blog.

    Going with your example where the xmlrpc.php file has been renamed xmlrpc_post.php here's what you'll need to do:

    Edit xmlrpc_post.php and look the line that looks like this, should be about line 42:

    <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc.php') ?>" />

    You'll need to change the site_url() call to use xmlrpc_post.php instead:

    <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc_post.php') ?>" />

    Save that and add your blog to the iPhone app again. It should then pick up the change and be able to work with your blog at that point.

    One caution though, if your host is doing arbitrary things like blocking requests to files xmlrpc.php then it is likely that they are doing other equally arbitrary and annoying things to stop XML-RPC from working, so don't be surprised if something else turns up.

Topic Closed

This topic has been closed to new replies.


About this Topic