https://github.com/novactive/almaviacxrestrictedsiteaccessbundle
https://github.com/novactive/almaviacxrestrictedsiteaccessbundle
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/novactive/almaviacxrestrictedsiteaccessbundle
- Owner: Novactive
- License: mit
- Created: 2023-02-03T10:23:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T08:53:51.000Z (about 3 years ago)
- Last Synced: 2025-03-19T01:48:09.876Z (about 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AlmaviaCX Restricted SiteAccess Bundle
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.
```php
return [
// ...
AlmaviaCX\RestrictedSiteaccess\AlmaviacxRestrictedSiteaccessBundle::class => ['all' => true],
];
```
### Add parameters
The values can be updated according to the project specification
```yaml
# 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
```