This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Restrict backend to an IP
Started 15 years ago by ryanmc | 2 posts |
-
Hi,
I'm currently looking at blocking access to the backend to an IP range, I've opened up view entries and manage entries by removing the check session, but only allowing those logged in to edit the entry.
However Obviously if someone finds outs the folder it's not to hard to just do form/view_entry.php?form_id=1&id=5 and view that entry.
So I want to block backend access to a perticular IP, is this possible?
Posted 15 years ago # -
If you need to allow one IP only to access the backend, you can modify your check-session.php file and add this code:
if($_SERVER['REMOTE_ADDR'] != '123.345.33.22'){ die('You are not allowed to access this page!'); }
That would restrict the backend to the above IP address.
MachForm Founder
Posted 15 years ago #
Reply
You must log in to post.