# easy-basic-authentication/4.1.0/easy-basic-authentication.php

Easy Basic Authentication – Add basic auth to site or admin area, version 4.1.0. 23 lines.

- Page: https://pluginprobe.com/plugins/easy-basic-authentication/4.1.0/code/easy-basic-authentication.php
- Raw: https://pluginprobe.com/plugins/easy-basic-authentication/4.1.0/raw/easy-basic-authentication.php
- Modified: 2026-09-17T16:54:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-basic-authentication/4.1.0/code/easy-basic-authentication.php#L10-L20`.

```php
<?php
   /*
   Plugin Name: Easy Basic Authentication
   description: Enhance WordPress security with Easy Basic Authentication plugin.
   Version: 4.1.0
   Author: Matteo Enna
   Author URI: https://matteoenna.it/it/wordpress-work/
   Text Domain: easy-basic-authentication
   License: GPL2
   */

    if ( ! defined( 'ABSPATH' ) ) {
        exit;
    }

    define( 'EASY_BASIC_AUTHENTICATION_VERSION', '4.1.0' );

    require_once (dirname(__FILE__).'/class/easy-basic-authentication-class.php');
     
    add_action('plugins_loaded', function () {
        new easy_basic_authentication_class();
    });

```
