Title: Knock First – Password Protect Your Site
Author: stettzy
Published: <strong>October 16, 2026</strong>
Last modified: October 16, 2026

---

Search plugins

![](https://ps.w.org/knock-first-password-protection/assets/banner-772x250.png?rev
=3750983)

![](https://ps.w.org/knock-first-password-protection/assets/icon-256x256.png?rev
=3750983)

# Knock First – Password Protect Your Site

 By [stettzy](https://profiles.wordpress.org/stettzy/)

[Download](https://downloads.wordpress.org/plugin/knock-first-password-protection.1.0.2.zip)

 * [Details](https://wordpress.org/plugins/knock-first-password-protection/#description)
 * [Reviews](https://wordpress.org/plugins/knock-first-password-protection/#reviews)
 *  [Installation](https://wordpress.org/plugins/knock-first-password-protection/#installation)
 * [Development](https://wordpress.org/plugins/knock-first-password-protection/#developers)

 [Support](https://wordpress.org/support/plugin/knock-first-password-protection/)

## Description

Knock First makes it easy to password protect an entire WordPress website with one
shared password. It is ideal for private sites, staging websites, client previews,
coming-soon pages, and launches.

The plugin is disabled by default. After activation, open **Settings > Site Password**,
choose a password, and enable protection.

Features:

 * One switch protects the public-facing site.
 * Passwords are stored as one-way WordPress password hashes, never as plain text.
 * Access uses a signed, HTTP-only browser cookie that is invalidated when the password
   changes.
 * Choose an access duration from one hour to 30 days.
 * Optionally let logged-in WordPress users bypass the gate.
 * Administrators and the standard WordPress login always remain accessible.
 * Public REST API requests are protected, core XML sitemaps are disabled, and robots
   are asked not to index the protected site.
 * The unlock screen is responsive, keyboard friendly, and uses no external services
   or assets.
 * No tracking, advertising, remote requests, or user accounts.

#### Important security note

This plugin is a simple privacy gate. It is not a replacement for WordPress user
accounts, server-level access control, or another security system when protecting
sensitive or regulated data. Public files already uploaded to the Media Library 
may remain reachable by their direct URLs, and another plugin can expose data through
its own custom endpoints.

## Installation

 1. Install and activate Knock First.
 2. Go to **Settings > Site Password**.
 3. Enter a shared password.
 4. Select **Require the site password** and save your changes.
 5. Open the site in a private browser window to test the unlock screen.

Protection is off immediately after activation, so activating the plugin cannot 
unexpectedly lock visitors out.

## FAQ

### Can I still sign in to WordPress?

Yes. The standard WordPress login and administration screens remain available. Administrators
always bypass the gate.

### Is the password stored in plain text?

No. Knock First uses the WordPress password hashing API. The original password cannot
be retrieved from the saved setting.

### What happens when I change the password?

All existing Knock First access cookies become invalid immediately. Visitors must
enter the new password.

### Does this hide media files?

Not when someone already knows a file’s direct URL. WordPress usually serves uploaded
files directly through the web server, before plugins run. Use server-level protection
or private object storage when the files themselves are sensitive.

### Does this stop search engines?

While protection is enabled, the unlock page sends no-index directives, the virtual
robots.txt disallows crawling, and WordPress core sitemaps are disabled. Search 
engines control their own behavior, and previously indexed URLs can take time to
disappear.

### Will it work with page caching?

The plugin sends no-cache headers and sets the standard `DONOTCACHEPAGE` constant
while enabled. Some host-level or CDN caches run before WordPress and may need a
manual exclusion or cache purge.

### Does the plugin collect personal data?

No. It makes no remote requests and stores no visitor records. It sets one necessary
HTTP-only cookie after a visitor enters the correct password.

## Reviews

![](https://secure.gravatar.com/avatar/dd74d5ca2c9e0221f61cceb82610741d0ee2a9ad4c44d5f38a1f96fc07aba058?
s=60&d=retro&r=g)

### 󠀁[Simple, effective and easy to use!](https://wordpress.org/support/topic/simple-effective-and-easy-to-use-10/)󠁿

 [koneska](https://profiles.wordpress.org/koneska/) October 16, 2026

A useful plugin for anyone looking for a simple and practical solution!

 [ Read all 1 review ](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/)

## Contributors & Developers

“Knock First – Password Protect Your Site” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ stettzy ](https://profiles.wordpress.org/stettzy/)

[Translate “Knock First – Password Protect Your Site” into your language.](https://translate.wordpress.org/projects/wp-plugins/knock-first-password-protection)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/knock-first-password-protection/),
check out the [SVN repository](https://plugins.svn.wordpress.org/knock-first-password-protection/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/knock-first-password-protection/)
by [RSS](https://plugins.trac.wordpress.org/log/knock-first-password-protection/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.2

 * Rename the plugin to Knock First – Password Protect Your Site and align the publication
   slug and text domain.

#### 1.0.1

 * Fix saving the first site password when the settings option does not already 
   exist.
 * Migrate settings from the early development option key.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.2**
 *  Last updated **2 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [maintenance](https://wordpress.org/plugins/tags/maintenance/)[Password Protect](https://wordpress.org/plugins/tags/password-protect/)
   [password protection](https://wordpress.org/plugins/tags/password-protection/)
   [private site](https://wordpress.org/plugins/tags/private-site/)[staging](https://wordpress.org/plugins/tags/staging/)
 *  [Advanced View](https://wordpress.org/plugins/knock-first-password-protection/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/knock-first-password-protection/reviews/)

## Contributors

 *   [ stettzy ](https://profiles.wordpress.org/stettzy/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/knock-first-password-protection/)