almaviacx/restrictedsiteaccess

AlmaviaCX Restricted SiteAccess Bundle provide a restriction of one or more siteaccess by IP addresses for ibexa 4.x in case it is impossible to restrict by nginx/apache or .htaccess. Useful for restricting a siteaccess on platform.sh

dev-main 2023-02-23 08:53 UTC

This package is auto-updated.

Last update: 2024-04-24 17:09:35 UTC


README

AlmaviaCX Restricted SiteAccess Bundle provide a restriction of one or more siteaccess by IP addresses for ibexa 4.x in case it is impossible to restrict by nginx/apache or .htaccess. Useful for restricting a siteaccess on platform.sh

Installation

Use Composer

Add the lib to your composer.json, run composer require almaviacx/restrictedsiteaccess to refresh dependencies.

Register the bundle

Then inject the bundle in the config\bundles.php of your application.

    return [
        // ...
        AlmaviaCX\RestrictedSiteaccess\AlmaviacxRestrictedSiteaccessBundle::class => ['all' => true],
    ];

Add parameters

The values can be updated according to the project specification

# config/packages/ibexa.yaml

parameters:
  ...
  acx_acl.default.siteaccess_controls:
    'siteaccessname':
      enabled: true
      authorized_ips:
        - 192.168.16.1
        - X.X.X.X
    'admin':
      enabled: true
      authorized_ips:
        - 192.168.16.1
        - X.X.X.X