=== Simple Password Protect ===
Contributors: desk9
Tags: password, protection, security, privacy, access control
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protect your entire WordPress site with a simple password. GDPR-compliant with modal links for legal pages.

== Description ==

Simple Password Protect provides an easy way to password-protect your entire WordPress website frontend. Perfect for development sites, private blogs, or any site that needs basic access control.

**Key Features:**

* **Global Protection**: Protects the entire frontend of your WordPress site
* **GDPR Compliance**: Modal windows for Legal Disclosure and Privacy Policy pages
* **Secure Authentication**: Uses WordPress password hashing and secure cookies
* **Admin Bypass**: WordPress administrators can access the site without password
* **Customizable Design**: Upload logos, customize colors and text
* **Mobile Responsive**: Works perfectly ons all devices
* **24-Hour Sessions**: Authenticated users stay logged in for 24 hours

**Perfect For:**

* Development and staging sites
* Private family blogs
* Member-only websites
* Temporary site protection
* Client preview sites

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/simple-password-protect/`
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Go to Settings > Password Protect to configure the plugin
4. Set your password and enable protection
5. Customize the appearance and legal page links as needed

== Frequently Asked Questions ==

= Does this work with caching plugins? =

Yes, the plugin is designed to work with most caching plugins. The password form is displayed before any cached content.

= Can WordPress administrators bypass the password? =

Yes, logged-in WordPress users with administrator privileges can access the site without entering the password.

= Is the password stored securely? =

Yes, passwords are hashed using WordPress's secure password hashing functions, the same method used for user passwords.

= Can I customize the appearance? =

Yes, you can upload a custom logo, change colors, and modify the text displayed on the password page.

= What about GDPR compliance? =

The plugin includes options to link to your Legal Disclosure and Privacy Policy pages, which open in modal windows for GDPR compliance.

== Screenshots ==

1. Password protection page with custom logo and styling
2. Admin settings page - General options
3. Admin settings page - Appearance customization
4. Admin settings page - Legal compliance options
5. Mobile-responsive password form

== Changelog ==

= 1.1.0 =
* NEW: Optional Admin Login button for quick access to WordPress admin
* NEW: Toggle to show/hide legal page links
* IMPROVED: Legal links now display actual page titles instead of hardcoded text
* FIXED: Password authentication now works correctly with all password types
* FIXED: Password storage in database is now reliable
* FIXED: Removed password length restrictions - all passwords now work
* IMPROVED: Password handling - preserves exact characters without sanitization
* IMPROVED: Admin login button styling matches main enter button
* IMPROVED: Better positioning - admin button now appears above legal links
* IMPROVED: Cleaner admin interface - removed redundant status sections
* IMPROVED: Better WordPress Coding Standards compliance

= 1.0.0 =
* Initial release
* Global password protection for entire site
* GDPR-compliant modal links
* Customizable appearance and colors
* Secure password hashing and authentication
* Mobile-responsive design
* WordPress admin bypass functionality

== Upgrade Notice ==

= 1.1.0 =
Important update! Fixes critical password authentication issues and adds new admin login button feature. All users should update. After updating, please set a new password in Settings > Password Protect to ensure proper functionality.

= 1.0.0 =
Initial release of Simple Password Protect.

== Support ==

For support, please visit the plugin's support forum or contact the developer.

== Privacy Policy ==

This plugin stores a hashed version of your protection password in the WordPress database. It also sets a secure authentication cookie when users successfully enter the password. No personal data is collected or transmitted to external services.

== License ==

This plugin is licensed under the GPLv2 or later license.
https://www.gnu.org/licenses/gpl-2.0.html 