mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
IP Reputation Checking
This commit is contained in:
@@ -63,8 +63,8 @@ var/list/gamemode_cache = list()
|
||||
var/allow_random_events = 0 // enables random events mid-round when set to 1
|
||||
var/enable_game_master = 0 // enables the 'smart' event system.
|
||||
var/allow_ai = 1 // allow ai job
|
||||
var/allow_ai_shells = TRUE // allow AIs to enter and leave special borg shells at will, and for those shells to be buildable.
|
||||
var/give_free_ai_shell = TRUE // allows a specific spawner object to instantiate a premade AI Shell
|
||||
var/allow_ai_shells = FALSE // allow AIs to enter and leave special borg shells at will, and for those shells to be buildable.
|
||||
var/give_free_ai_shell = FALSE // allows a specific spawner object to instantiate a premade AI Shell
|
||||
var/hostedby = null
|
||||
var/respawn = 1
|
||||
var/guest_jobban = 1
|
||||
@@ -104,6 +104,13 @@ var/list/gamemode_cache = list()
|
||||
var/panic_bunker = 0
|
||||
var/paranoia_logging = 0
|
||||
|
||||
var/ip_reputation = FALSE //Should we query IPs to get scores? Generates HTTP traffic to an API service.
|
||||
var/ipr_email //Left null because you MUST specify one otherwise you're making the internet worse.
|
||||
var/ipr_block_bad_ips = FALSE //Should we block anyone who meets the minimum score below? Otherwise we just log it (If paranoia logging is on, visibly in chat).
|
||||
var/ipr_bad_score = 1 //The API returns a value between 0 and 1 (inclusive), with 1 being 'definitely VPN/Tor/Proxy'. Values equal/above this var are considered bad.
|
||||
var/ipr_allow_existing = FALSE //Should we allow known players to use VPNs/Proxies? If the player is already banned then obviously they still can't connect.
|
||||
var/ipr_minimum_age = 5 //How many days before a player is considered 'fine' for the purposes of allowing them to use VPNs.
|
||||
|
||||
var/serverurl
|
||||
var/server
|
||||
var/banappeals
|
||||
@@ -806,6 +813,24 @@ var/list/gamemode_cache = list()
|
||||
if ("paranoia_logging")
|
||||
config.paranoia_logging = 1
|
||||
|
||||
if("ip_reputation")
|
||||
config.ip_reputation = 1
|
||||
|
||||
if("ipr_email")
|
||||
config.ipr_email = value
|
||||
|
||||
if("ipr_block_bad_ips")
|
||||
config.ipr_block_bad_ips = 1
|
||||
|
||||
if("ipr_bad_score")
|
||||
config.ipr_bad_score = text2num(value)
|
||||
|
||||
if("ipr_allow_existing")
|
||||
config.ipr_allow_existing = 1
|
||||
|
||||
if("ipr_minimum_age")
|
||||
config.ipr_minimum_age = text2num(value)
|
||||
|
||||
if("random_submap_orientation")
|
||||
config.random_submap_orientation = 1
|
||||
|
||||
@@ -994,4 +1019,4 @@ var/list/gamemode_cache = list()
|
||||
if(world.system_type == UNIX)
|
||||
config.python_path = "/usr/bin/env python2"
|
||||
else //probably windows, if not this should work anyway
|
||||
config.python_path = "python"
|
||||
config.python_path = "python"
|
||||
Reference in New Issue
Block a user