<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Securing Admin Panel</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Securing Admin Panel</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 22:33:54 +0000</pubDate>

<item>
<title>yuniar on "Securing Admin Panel"</title>
<link>https://www.machform.com/forums/topic/securing-admin-panel#post-18556</link>
<pubDate>Wed, 19 Jun 2013 16:04:10 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">18556@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can do it like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$ip_address = $_SERVER[&#38;#39;REMOTE_ADDR&#38;#39;];
$allowed_ip_addresses = array(&#38;#39;192.151.32.32&#38;#39;,&#38;#39;24.122.321.322&#38;#39;,&#38;#39;62.23.45.212&#38;#39;);

if(!in_array($ip_address, $allowed_ip_addresses)){
  die(&#38;quot;You don&#38;#39;t have permission to access this page&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>TFteam on "Securing Admin Panel"</title>
<link>https://www.machform.com/forums/topic/securing-admin-panel#post-18550</link>
<pubDate>Mon, 17 Jun 2013 21:47:13 +0000</pubDate>
<dc:creator>TFteam</dc:creator>
<guid isPermaLink="false">18550@https://www.machform.com/forums/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;$ip_address = $_SERVER['REMOTE_ADDR']; if($ip_address != '192.168.1.1'){ die(&#34;You don't have permission to access this page&#34;); }&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;What if I have multiple IPs rather than one? How would I do this?&#60;/p&#62;
&#60;p&#62;Let say I want to be able to access with 3 IPs, home, office #1 and office #2.&#60;/p&#62;
&#60;p&#62;Home = 192.151.32.32&#60;br /&#62;
Office #1 = 24.122.321.322&#60;br /&#62;
Office #2 = 62.23.45.212&#60;/p&#62;
&#60;p&#62;Please advise. Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>AMurray on "Securing Admin Panel"</title>
<link>https://www.machform.com/forums/topic/securing-admin-panel#post-18059</link>
<pubDate>Sat, 20 Apr 2013 06:07:54 +0000</pubDate>
<dc:creator>AMurray</dc:creator>
<guid isPermaLink="false">18059@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Instead of not equal to != use greater/equal or less/equal. II don't know much PHP and the syntax is probably wrong, but should be something like: &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$ip_address = $_SERVER[&#38;#39;REMOTE_ADDR&#38;#39;];
if($ip_address &#38;gt;=&#38;#39;192.x.x.x&#38;#39;) AND ($ip_address &#38;lt;= 192..x.x.x) {
die(&#38;quot;you don&#38;#39;t have permission......&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>AcEw1zArD on "Securing Admin Panel"</title>
<link>https://www.machform.com/forums/topic/securing-admin-panel#post-18056</link>
<pubDate>Fri, 19 Apr 2013 21:21:52 +0000</pubDate>
<dc:creator>AcEw1zArD</dc:creator>
<guid isPermaLink="false">18056@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Im guessing it would be fairly easy to adapt that code to allow an IP block through, IE 192.168.0.1 - 192.168.0.254?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Securing Admin Panel"</title>
<link>https://www.machform.com/forums/topic/securing-admin-panel#post-18047</link>
<pubDate>Fri, 19 Apr 2013 13:59:47 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">18047@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;A simple workaround to restrict the login page to be available for certain ip address is by modifying the index.php file under your machform folder.&#60;br /&#62;
Search around line 10 for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;require(&#38;#39;includes/init.php&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Below that line, you can add this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$ip_address = $_SERVER[&#38;#39;REMOTE_ADDR&#38;#39;];
if($ip_address != &#38;#39;192.168.1.1&#38;#39;){
  die(&#38;quot;You don&#38;#39;t have permission to access this page&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change the above ip address with your own of course.
&#60;/p&#62;</description>
</item>
<item>
<title>williamansley on "Securing Admin Panel"</title>
<link>https://www.machform.com/forums/topic/securing-admin-panel#post-18027</link>
<pubDate>Thu, 18 Apr 2013 00:30:29 +0000</pubDate>
<dc:creator>williamansley</dc:creator>
<guid isPermaLink="false">18027@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It is not clear to me what you want to do. Why isn't the built-in password protection of the Admin panel sufficient for you?
&#60;/p&#62;</description>
</item>
<item>
<title>TFteam on "Securing Admin Panel"</title>
<link>https://www.machform.com/forums/topic/securing-admin-panel#post-18021</link>
<pubDate>Wed, 17 Apr 2013 21:15:47 +0000</pubDate>
<dc:creator>TFteam</dc:creator>
<guid isPermaLink="false">18021@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have installed the form under &#60;a href=&#34;http://www.mydomain.com/form&#34; rel=&#34;nofollow&#34;&#62;www.mydomain.com/form&#60;/a&#62; and I tried using htpassword trick to secure this directory. However, by doing this, it seems to lock up ALL my forms (not only the admin panel). Is there a way to secure the admin panel so no one can access to it easily? At least a IP-restriction or some sort will be nice. &#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
