forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes ipintel only warn, fixes some cache things.
- Loading branch information
1 parent
c37ae78
commit d220416
Showing
7 changed files
with
73 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,9 +72,10 @@ | |
|
||
//IP Intel vars | ||
var/ipintel_email | ||
var/ipintel_rating_max = 1 | ||
var/ipintel_save_good = 3 | ||
var/ipintel_rating_bad = 1 | ||
var/ipintel_save_good = 12 | ||
var/ipintel_save_bad = 1 | ||
var/ipintel_domain = "check.getipintel.net" | ||
|
||
var/admin_legacy_system = 0 //Defines whether the server uses the legacy admin system with admins.txt or the SQL system. Config option in config.txt | ||
var/ban_legacy_system = 0 //Defines whether the server uses the legacy banning system with the files in /data or the SQL system. Config option in config.txt | ||
|
@@ -398,8 +399,10 @@ | |
if("ipintel_email") | ||
if (value != "[email protected]") | ||
config.ipintel_email = value | ||
if("ipintel_rating_max") | ||
config.ipintel_rating_max = text2num(value) | ||
if("ipintel_rating_bad") | ||
config.ipintel_rating_bad = text2num(value) | ||
if("ipintel_domain") | ||
config.ipintel_domain = value | ||
if("ipintel_save_good") | ||
config.ipintel_save_good = text2num(value) | ||
if("ipintel_save_bad") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,16 +112,17 @@ HOSTEDBY Yournamehere | |
GUEST_BAN | ||
|
||
### IPINTEL: | ||
### This allows you to block likely proxies by checking ips against getipintel.net | ||
## Maximum rating: (0.90 is good, 1 is 100% likely to be a spammer/proxy, 0.8 is 80%, etc) anything higher then this number is rejected | ||
#IPINTEL_RATING_MAX 0.90 | ||
### This allows you to detect likely proxies by checking ips against getipintel.net | ||
## Rating to warn at: (0.90 is good, 1 is 100% likely to be a spammer/proxy, 0.8 is 80%, etc) anything equal to or higher then this number triggers an admin warning | ||
#IPINTEL_RATING_BAD 0.90 | ||
## Contact email, (required to use the service, leaving blank or default disables IPINTEL) | ||
#IPINTEL_EMAIL [email protected] | ||
## How long to save good matches (ipintel rate limits to 15 per minute and 500 per day. so this shouldn't be too low, getipintel.net suggests 6 hours, time is in hours) | ||
#IPINTEL_SAVE_GOOD 6 | ||
## How long to save good matches (ipintel rate limits to 15 per minute and 500 per day. so this shouldn't be too low, getipintel.net suggests 6 hours, time is in hours) (Your ip will get banned if you go over 500 a day too many times) | ||
#IPINTEL_SAVE_GOOD 12 | ||
## How long to save bad matches (these numbers can change as ips change hands, best not to save these for too long in case somebody gets a new ip used by a spammer/proxy before.) | ||
#IPINTEL_SAVE_BAD 1 | ||
|
||
#IPINTEL_SAVE_BAD 3 | ||
## Domain name to query (leave commented out for the default, only needed if you pay getipintel.net for more querys) | ||
#IPINTEL_DOMAIN check.getipintel.net | ||
|
||
## Uncomment to allow web client connections | ||
#ALLOW_WEBCLIENT | ||
|