mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 17:40:18 +00:00
661 B
661 B
title |
---|
IP filtering |
The IP filter configuration allows you to whitelist or blacklist specific or range IP addresses.
The blacklisted IP addresses won't have access to your web application at all.
Configuration
Configuration:
- Key:
ip
- Environment:
development
- Location:
./config/environments/development/security.json
- Type:
object
Example:
{
"ip": {
"whiteList": [
"192.168.0.*",
"8.8.8.[0-3]"
],
"blackList": [
"144.144.*"
]
}
}
Options:
whiteList
(array): IP addresses allowed.blackList
(array): IP addresses forbidden.
Notes:
- Set to
false
to disable IP filter.