Access Code Lite

Apraksts

Access Code Lite lets you require a simple URL parameter code (e.g. ‘?access_code=enter123’) before visitors can view your site.
Simply share the private access link (e.g. https://example.com?access_code=enter123) that the plugin generates to any user who you wish to grant access.
Ideal for development, staging, previews, or private sharing without complex authentication.

Features:
– Set a custom access code from the plugin settings page.
– Code can be 3–12 characters, letters and numbers only.
– Session persistence (default): visitors only need to enter the code once per visit.
– Logged-in users, WordPress login, password reset, admin, AJAX, and cron are always allowed.

Important: Access Code Lite is not a security plugin.
It does not encrypt, hide, or protect sensitive data. It only adds a simple URL parameter check and should be used for low-risk scenarios like development, staging, or preview access.
Do not rely on this plugin to secure private or confidential information.

More persistence options (cookies, tokens, etc.) will be added in future versions.

Uzstādīšana

  1. Upload the plugin files to the /wp-content/plugins/access-code-lite/ directory, or install via the Plugins screen in WordPress.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to Settings Access Code Lite to configure your access code and status.

BUJ

What happens if the code is wrong or missing?

Visitors see an “Access Denied” page with a 403 Forbidden status.

Do logged-in users need the code?

No. Logged-in users and WordPress authentication endpoints are always allowed.

How long does the access code last?

By default, for the duration of the visitor’s session (until they close their browser).

Atsauksmes

Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“Access Code Lite” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Access Code Lite&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0.2

  • Fixed an issue where root (/) requests could be incorrectly routed to the latest post during access-code handling.
  • Refactored access-code request processing for clarity and stability.

1.0.1

  • Added optional cookie-based access persistence.
  • Internal improvements.

1.0.0

  • Initial release