Hi,<br><br>Thanks for your previous help with page editing permissions.<br><br>This time I would like to make pages in the group &#39;Project&#39; (for example, Project.Data, Project.Meetings, Project.Deadlines) accessible only to visitors from a fixed IP number.<br>
<br>If any other visitor tries to access &#39;Project&#39; pages, then they should receive the page Main.HomePage instead.<br><br>Shall I put something like this into local/config.php ?<br><br>if ( &lt;group is &#39;Project&#39; -- how to write this?&gt; &amp;&amp; @$_SERVER[&#39;REMOTE_ADDR&#39;] != &#39;&lt;selected IP&gt;&#39;){  <br>
      &lt;instead of the requested page set page to &#39;Main.HomePage&#39;&gt;<br>}<br><br>Thanks,<br>Illes<br><br><div class="gmail_quote">On Thu, Sep 25, 2008 at 9:21 AM, Farkas, Illes <span dir="ltr">&lt;<a href="mailto:illes.farkas@gmail.com">illes.farkas@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Thanks,<br>Illes<br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 8:21 PM, Patrick R. Michaud <span dir="ltr">&lt;<a href="mailto:pmichaud@pobox.com" target="_blank">pmichaud@pobox.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Wed, Sep 24, 2008 at 06:00:17PM +0200, Farkas, Illes wrote:<br>
&gt; Dear PmWiki Users,<br>
&gt;<br>
&gt; Is it possible to allow editing only from one selected IP (and disallow from<br>
&gt; all others) ?<br>
<br>
</div>In config.php:<br>
<br>
if ($action == &#39;edit&#39; &amp;&amp; @$_SERVER[&#39;REMOTE_ADDR&#39;] != &#39;<a href="http://192.168.1.1/" target="_blank">192.168.1.1</a>&#39;)<br>
  $action = &#39;browse&#39;;<br>
<br>
This will prevent editing from any address other than <a href="http://192.168.1.1/" target="_blank">192.168.1.1</a>.<br>
<font color="#888888"><br>
Pm<br>
</font></blockquote></div><br></div>
</blockquote></div><br>