About Protected Mode
Allows you to put your site into protected mode so that users must be logged in to access the front-end of the site.
Category | Admin Helpers Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules). |
---|---|
Release State | Stable Should be safe for use in production environments. * |
Author | |
Module Version | 1.1.0 |
Class Name | ProtectedMode |
Compatibility | 2.4, 2.5, 2.6, 2.7, 3.0 |
Date Added | September 26, 2014 |
Last Updated | November 15, 2017 |
Recommended By | New recommendations may take up to 1 day to appear. |
Instructions
This module's files should be placed in /site/modules/ProtectedMode/
How to install or uninstall modules
README
Protected Mode
Processwire module to prevent access to front-end of website unless logged in.
Very handy during development/maintenance to allow the clients and testers to view the site, but keep everyone else out.
Config Settings
- Checkbox to enable/disable the protected mode
- Textarea field for message to be displayed to visitors
- Textarea field for message to be displayed to users who are not allowed
- Textarea for CSS to style the login form if you wish
- Various 503 settings
- Text options for modifying placeholders etc
- All text is translatable
License
This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(See included LICENSE file for full license text.)
Comments
Hi, Adrian, thanks for the module, I was almost starting to build the same, when I discovered yours :-)
I replace the hardcoded english labels of the form with the translate method __('string'). Maybe a good thing for other peaople too?
Cheers, Mike
Hi Mike,
Sorry, I forgot to make some things translatable. Would you mind sending me a pull request with your changes?
Thanks!
Can this module be used to password protect a single page within a website? Example: I want to protect a coupon page. Only those that have submitted their email address will receive a password to get into the coupon page so that they may download the coupons. Thanks!
Peter Knight 3 years ago ↑0↓0
Great Module Adrian. Thanks for creating this.
It would be great if the Message was a little more than plain text.
Ideas are it could be rich text or perhaps it could be the page ID of a PW page which wasn't protected. Just a thought :-)Peter Knight 3 years ago ↑0↓0
Thanks Adrian. Looks great.
Post a Comment
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Authentication
- Core Modules
- Development Tools
- Email/WireMail
- Field Types
- Import/Export
- Input Fields
- Language Modules
- Language Packs
- Logs/Monitoring
- Markup Generation
- Photo/Video/Audio
- Premium Modules
- Process Modules
- Proof of Concept
- SEO/Accessibility
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
Disclaimer
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.