WP3 doesn't bring any change (that I noticed) to the XML-RPC feature, so Joseph's solution will work great in both WP2.x and WP3. I think I would match the hostname instead of the blog_id, though.<br><br>Have fun !<br>
Nicolas<br><br><br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 5:33 PM, Joseph Scott <span dir="ltr"><<a href="mailto:joseph@josephscott.org">joseph@josephscott.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
In the same way that you can add XML-RPC methods using that filter,<br>
you can also remove them. If you hook into that filter and then do<br>
your tests against blog_id (or some other parameter) to see what, if<br>
any, methods should be removed.<br>
<div><div></div><div class="h5"><br>
On Wed, Sep 15, 2010 at 4:21 AM, luke Mackenzie <<a href="mailto:luke@lukem.co.uk">luke@lukem.co.uk</a>> wrote:<br>
> I am using the xmlrpc_methods filter to add custom XMLRPC methods to my WPMU<br>
> 2.9.2 install in an MU plugin. I'd like to restrict the available methods on<br>
> a per blog basis so that if the endpoint being called is<br>
> <a href="http://mydomain.com/blogname/xmlrpc.php" target="_blank">mydomain.com/blogname/xmlrpc.php</a>, only a subset of methods are exposed. The<br>
> concern is one of security so that a particular endpoint cannot be used to<br>
> influence, for example, voting results.<br>
> My initial thought was that I could use the REQUEST_URI and or the<br>
> REMOTE_ADDR vars in $_SERVER and switch on those in my xmlrpc_methods<br>
> function. We'll also be migrating to WP3 soon so it would be useful to know<br>
> if any relevant functionality exists in the later version.<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Joseph Scott<br>
<a href="mailto:joseph@josephscott.org">joseph@josephscott.org</a><br>
<a href="http://josephscott.org/" target="_blank">http://josephscott.org/</a><br>
_______________________________________________<br>
wp-xmlrpc mailing list<br>
<a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
</font></blockquote></div><br>