This module has been designed to offer an additional layer of security over our communications. To achieve this, the following features are available: - Blacklist to block user agents, IP addresses, countries, domains and users. - Whitelist to allow user agents, IP addresses, countries, domains and users. - Blacklist of destinations where the called number is not allowed. - SQL injection attacks prevention. When a function is called, it will be searched in the whitelist. If the value is not found, then the blacklist will be searched. All data will be loaded into memory when the module is started. There is an RPC reload command to update all the data from database. It is also possible to add new data to the blacklist or whitelist using other RPC commands.
| Parámetro | Tipo | Descripción |
|---|---|---|
| db_url | string | 3.2. table_name (string) 3.3. action_col (string) 3.4. type_col (string) 3.5. data_col (string) 3.6. dst_exact_match (integer) 3.7. reload_delta (integer) 3.8. cleanup_interval (integer) |
| table_name | string | 3.3. action_col (string) 3.4. type_col (string) 3.5. data_col (string) 3.6. dst_exact_match (integer) 3.7. reload_delta (integer) 3.8. cleanup_interval (integer) |
| action_col | string | 3.4. type_col (string) 3.5. data_col (string) 3.6. dst_exact_match (integer) 3.7. reload_delta (integer) 3.8. cleanup_interval (integer) |
| type_col | string | 3.5. data_col (string) 3.6. dst_exact_match (integer) 3.7. reload_delta (integer) 3.8. cleanup_interval (integer) |
| data_col | string | 3.6. dst_exact_match (integer) 3.7. reload_delta (integer) 3.8. cleanup_interval (integer) |
| dst_exact_match | integer | 3.7. reload_delta (integer) 3.8. cleanup_interval (integer) |
| reload_delta | integer | 3.8. cleanup_interval (integer) |
| cleanup_interval | integer | 3.1. db_url (string) |
| db_url | string | Database URL. |
| table_name | string | Name of the table used to store the blacklisted and whitelisted values. |
| action_col | string | Name of database column containing the type of list. The possible values are: |
| type_col | string | Name of database column containing the type of values. The possible values are: |
| data_col | string | Name of database column containing blacklisted and whitelisted values. |
| dst_exact_match | integer | This value is used in the destinations blacklist and corresponds to the numbers that we want to prevent calling. If the value is 1, the call will appear as blacklisted if the destination is exactly th |
| reload_delta | integer | The number of seconds that have to be waited before executing a new RPC reload. By default there is a rate limiting of maximum one reload in five seconds. If set to 0, no rate limit is configured. |
| cleanup_interval | integer | The number of seconds that have to be wait before cleanup the previous values from memory after a RPC reload. |
Copyright © 2018