Hi, I’ve added a bit of functionality a modx content management system for a client, its basically a few HTML and PHP pages, is there anyway of protecting the security of these pages within modx?
I.e. you have to be logged in to gain access to these pages?
Or do I simply have to add some sort of PHP script to authenticate users on login?
Thanks,
Emma
Thanks, I had a look and I dont think this will work for me
E.g. I have written a simple html page that links to several php pages
I want to set it up, so that, if a user tries to access the html page, they will get kicked out unless they are logged into the manager
-
MODX Staff
- 10,725 Posts
No, you definitely can’t authenticate web server requests for html pages through MODx. Why can you not just put the HTML page in MODx as a page? Then you’re golden.
"]Protecting php pages is possible, on each page check the session variables and see if there is a user signed into the manager, if not redirect to the login page. Check out this forum thread for details."
I think I’ll go for this option, thanks