Skip to Àkóónú
WordPress.org

Yorùbá

  • Themes
  • Plugins
  • Àtìlẹ́yìn
  • Nípa
  • Ìwé Ìtónisónà
  • Egbé
  • Kàn síwa
  • Gba WordPress
Wa WordPress jáde
WordPress.org

Plugin Directory

Easy Basic Authentication – Add basic auth to site or admin area

  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé
  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé

Easy Basic Authentication – Add basic auth to site or admin area

Láti ọwọ́ Matteo Enna
Ṣe ìgbàsílẹ̀
  • Àwọn àlàyé
  • Àwọn àgbéyẹ̀wò
  • Ìgbéwọlẹ̀
  • Ìdàgbàsókè
Ìrànlọ́wọ́

Àpèjúwe

The Easy Basic Authentication plugin provides a simple method to add basic authentication to your WordPress site. You can enable basic authentication for the entire site or only for the admin area by setting a custom username and password. Secure your site by restricting access only to authorized users.

Try it on a free mock site: click here

Key Features

  • Simple Configuration: With Easy Basic Authentication, you can easily set up basic authentication for your entire website or specifically for the admin area. Set a custom username and password to ensure secure access.

  • Admin Area Protection: If you wish to restrict access to your WordPress admin area, Easy Basic Authentication allows you to do so quickly and effectively. Only users with the correct credentials will be able to access this critical part of your site.

  • Entire site protection: If you wish, there is an option to extend the access limitation to the entire site and not just for your WordPress admin area, Easy Basic authentication allows you to do this quickly and effectively. Only users with the correct credentials will be able to access this critical part of your site.

  • Failed Access Logging: The plugin keeps track of failed login attempts, helping you identify unauthorized access attempts. This is particularly useful for monitoring your siteÌtumọ̀ Yorùbá: ’s security.

  • Access Log: If you choose to enable this feature, Easy Basic Authentication allows you to log successful logins, providing a comprehensive overview of login activities on your site.

  • Easy Management: The pluginÌtumọ̀ Yorùbá: ’s intuitive interface makes it simple to manage basic authentication settings. You can easily enable or disable basic authentication and adjust credentials to suit your needs.

  • Email Alert Functionality: Easy Basic Authentication includes an email alert feature to notify you of unauthorized access attempts. You can receive email alerts when someone tries to access your site without proper credentials.

  • White List Functionality: Easy Basic Authentication now includes a White List feature, allowing you to specify trusted IP addresses exempt from basic authentication. Configure this list to grant immediate access to known users or systems without requiring credentials, enhancing convenience while maintaining security.

  • Access Token for Crawlers: Some visitors cannot type a username and password: a search engine crawler, an uptime check, a headless front end. Generate an access token in the settings and let them through with an X-Basic-Auth-Token header, or an Authorization: Bearer one. The token opens the site only, never the admin area or the login page, and it exists only if you generate it.

Protect your WordPress site with basic authentication quickly and reliably. Easy Basic Authentication gives you control to ensure that only authorized users can access your online resources. Maintain your siteÌtumọ̀ Yorùbá: ’s security and prevent unwanted access today with Easy Basic Authentication.

Usage

  • Visit the plugin settings page to configure your desired basic authentication options.
  • Choose whether to enable basic authentication for the entire site or just the admin area.
  • Set a custom username and password for secure access.
  • Monitor failed access attempts and access logs for added security.

Letting a crawler in with a token

Go to the plugin settings, tick Generate a token when saving next to Access token for crawlers, and save. The token appears in the field; copy it and give it to the service that needs to reach the site.

That service must send it as a header, one of these two:

X-Basic-Auth-Token: your-token-here
Authorization: Bearer your-token-here

A request carrying the right token is served normally. The admin area and the login page stay behind the username and password, so the token cannot be used to reach the dashboard. A wrong token is refused like wrong credentials, and it is recorded among the failed attempts.

The token is a password: anyone holding it can read the whole site. Send it over HTTPS, and tick Delete the token and close this door when it is no longer needed. Tick Replace this token with a new one when saving to rotate it; the old one stops working immediately.

The basic_auth_token_access_granted action fires whenever a request comes in on the token, if you want to log or count those separately.

Troubleshooting: Resetting Basic Authentication

If youÌtumọ̀ Yorùbá: ’re having trouble logging in due to the basic authentication, you can reset it and regain access by following these steps:

1 Connect to your website via FTP.
2 Navigate to the plugin directory:

wp-content/plugins/easy-basic-authentication/class/

3 Locate the file:

easy-basic-authentication-class.php

4 Find the following line:

add_action( 'init', array($this,'basic_auth_admin') );

5 Comment out that line by adding a # at the beginning:

#add_action( 'init', array($this,'basic_auth_admin') );

6 Save the file and re-upload it to your server.

This will disable the basic authentication temporarily, allowing you to log in. Once logged in, you can adjust the plugin settings as needed.

If you need further assistance, feel free to reach out.

GitHub Repository

You can find the source code and contribute to the project on GitHub: Easy Basic Authentication on GitHub

Àwọn àwòrán ìbòjú

Ìgbéwọlẹ̀

  1. Upload the Easy Basic Authentication plugin to your WordPress site.
  2. Activate the plugin.
  3. Configure the basic authentication settings from the WordPress admin panel.

Àwọn àgbéyẹ̀wò

Works perfectly and improves site security without huge plugins

ziordia68 Ọ̀wàrà 25, 2025
I found it easy to implement, and works perfectly. With it, I do not need those really big security plugins, just combine it with other small plugins like 2fa.

Works perfectly

Nguyen Minh Hung Ọwẹ́wẹ̀ 10, 2024 1 ìdáhùn
Works perfectly and doesn't require complicated configuration. Thank you for creating this plugin.

Bravo! Mille Grazie!

James Joseph Finn Òkúdù 25, 2024 2 àwọn ìdáhùn
Ciao from an Italian-American. The plugin works flawlessly. Thank you for publishing it. One question: After configuring the plugin, I was expecting to find a .htpasswd file in the root directory; but apparently the plugin sets Basic Auth in a manner different than the one I'm familiar with. I'm no backend dev, but I always love to learn. I'm wondering how this works under the hood to implement Apache Basic Auth. Thank you again, paisano.
Ka gbogbo àwọn àgbéyẹ̀wò 3

Àwọn Olùkópa & Olùgbéejáde

“Easy Basic Authentication – Add basic auth to site or admin area” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa
  • Matteo Enna
  • ashkanahmadi

A ti túmọ̀ “Easy Basic Authentication – Add basic auth to site or admin area” sí àwọn èdè agbègbè 6. Ọpẹ́lọpẹ́ fún àwọn atúmọ̀ èdè fún àwọn ìkópa wọn.

Túmọ̀ “Easy Basic Authentication – Add basic auth to site or admin area” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

4.2.0

  • New: an access token that lets a crawler or an external service reach the site without a username and password. Generate it in the settings and send it as an X-Basic-Auth-Token header, or as Authorization: Bearer. It opens the site only: the admin area and the login page stay protected. No token is generated until you ask for one, so nothing changes for sites that do not need it.
  • Fixed: on a site protected in full, scheduled tasks stopped running. WordPress closes the response of wp-cron.php before loading the plugins, so the 401 challenge reached nobody, left a “headers already sent” warning in the error log on every run, and the exit that followed cancelled every scheduled task of the site. Cron requests are no longer challenged.
  • Fixed: on WordPress 6.7 and later the plugin triggered the “Translation loading was triggered too early” notice. The settings fields are now built on admin_init instead of plugins_loaded.

4.1.0

  • Fixed: an access attempt was logged, and an alert email sent, for every visitor. Basic Authentication always makes a first request without credentials, and that request was being counted as a failed attempt. Only requests that send wrong credentials are recorded now.
  • Fixed: the access log was stored in an autoloaded option, so up to 500 entries (around 144 KB) were loaded on every request to the site. It is now loaded only where it is used, and existing logs are migrated on update.
  • Fixed: on a site protected in full, WP-CLI and any command line script stopped silently. HTTP authentication is no longer applied outside HTTP requests.
  • The 401 status is now sent through WordPress instead of a hardcoded HTTP/1.0 header.
  • The authentication realm can be changed with the new basic_auth_realm filter.
  • Tested up to WordPress 7.1.

Àkójọpọ̀ Meta

  • Ẹ̀yà 4.2.0
  • Ìgbàgbọ́hùn tó kẹ́yìn ọ̀sẹ̀ 2 sẹ́yìn
  • Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ 700+
  • Ẹ̀yà WordPress 5.0 tàbí ju bẹ́ẹ̀ lọ
  • Dánwò dé 7.1.3
  • Ẹ̀yà PHP 7.2.5 tàbí ju bẹ́ẹ̀ lọ
  • Àwọn èdè

    English (UK), English (US), German, German (Austria), German (Switzerland), Italian, àti Spanish (Spain).

    Túmọ̀ sí èdè rẹ

  • Àwọn àmì
    access-controlauthenticationloginsecuritywordpress security
  • Ìwòye Tó Péye

Àwọn ìbò

5 lára àwọn ìràwọ̀ 5.
  • 3 5-star reviews àwọn ìràwọ̀ 5 3
  • 0 4-star reviews àwọn ìràwọ̀ 4 0
  • 0 3-star reviews àwọn ìràwọ̀ 3 0
  • 0 2-star reviews àwọn ìràwọ̀ 2 0
  • 0 1-star reviews ìràwọ̀ 1 0

Your review

Wo gbogbo àwọn àgbéyẹ̀wò

Àwọn Olùkópa

  • Matteo Enna
  • ashkanahmadi

Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

Wo àpéjọ ìrànlọ́wọ́

Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

Ṣe ìtọrẹ sí plugin yìí

  • Nípa Wa
  • Iroyin
  • Hosting
  • Privacy
  • Àfihàn
  • Themes
  • Plugins
  • Patterns
  • Kọ ẹkọ
  • Atilẹyin
  • Developers
  • WordPress.tv ↗
  • Kópa
  • Àwọn ìṣẹ̀lẹ̀
  • Ṣètọrẹ ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

Yorùbá

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Ṣabẹwo sí àkàùntù X (Twitter tẹ́lẹ̀) wa
  • Bẹwo akanti Bluesky wa
  • Lọ sí àkáǹtì Mastodon wa
  • Bẹwo akanti Threads wa
  • Ṣabẹwo si Facebook wa
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Bẹwo akanti TikTok wa
  • Visit our YouTube channel
  • Bẹwo akanti Tumblr wa
Koodu jẹ Ewi.