thanks for the replies guys!<div><br></div><div>Luke.</div><div><br><br><div class="gmail_quote">On Thu, Sep 16, 2010 at 12:31 PM, nico <span dir="ltr">&lt;<a href="mailto:nsebban@gmail.com">nsebban@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">WP3 doesn&#39;t bring any change (that I noticed) to the XML-RPC feature, so Joseph&#39;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<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 5:33 PM, Joseph Scott <span dir="ltr">&lt;<a href="mailto:joseph@josephscott.org" target="_blank">joseph@josephscott.org</a>&gt;</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><br>
On Wed, Sep 15, 2010 at 4:21 AM, luke Mackenzie &lt;<a href="mailto:luke@lukem.co.uk" target="_blank">luke@lukem.co.uk</a>&gt; wrote:<br>
&gt; I am using the xmlrpc_methods filter to add custom XMLRPC methods to my WPMU<br>
&gt; 2.9.2 install in an MU plugin. I&#39;d like to restrict the available methods on<br>
&gt; a per blog basis so that if the endpoint being called is<br>
&gt; <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>
&gt; concern is one of security so that a particular endpoint cannot be used to<br>
&gt; influence, for example, voting results.<br>
&gt; My initial thought was that I could use the REQUEST_URI and or the<br>
&gt; REMOTE_ADDR vars in $_SERVER and switch on those in my xmlrpc_methods<br>
&gt; function. We&#39;ll also be migrating to WP3 soon so it would be useful to know<br>
&gt; 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" target="_blank">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" target="_blank">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>
</div></div><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>
<br></blockquote></div><br></div>