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

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

- Page: https://pluginprobe.com/plugins/easy-basic-authentication/3.6.1/code/easy-basic-authentication.php
- Raw: https://pluginprobe.com/plugins/easy-basic-authentication/3.6.1/raw/easy-basic-authentication.php
- Modified: 2025-05-16T16:33:42+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/3.6.1/code/easy-basic-authentication.php#L10-L20`.

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

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

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

```
