bitpatroon / bpn_whitelist
Calculates if the host has access to a certain, defined by a record
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^7.2
- bitpatroon/typo3_hooks: ^1.0
- typo3/cms-core: ^10.3
This package is auto-updated.
Last update: 2024-11-29 05:03:59 UTC
README
TYPO3 whitelist for IPs to secure certain API services individually
Usage:
1. Add a record
Add a record through the backend in a folder type page. The record consists out of 3 fields:
- A title (describing who / what gets access for what)
- An IP list. (At least one) A list (comma separated) of IPs allowing access to an extension or all extensions.
- The extension or select Global to allow access to all.
With the following code the requested extension matches IP and extension. If a match is found, access is granted.
Add test code to your API
This code results in a false if there is no access granting record
if (!RemoteWhitelistController::isHostAllowed('myExtension')) {
// Do access denied stuff
}
Make sure to change the name of your extension, myExtension
in the code above.
Whats new in this version
2020-04-08
- This version work with TYPO3 v10.3.