Commit Graph

21 Commits

Author SHA1 Message Date
Lusamine
68c0634a5b Update datacenters & ip-tools (#5937) 2019-11-07 17:41:10 +10:30
Lusamine
a1fe7d3fc9 Update datacenters and IP-tools (#5915) 2019-10-27 16:25:24 -04:00
Waleed Hassan
28e870c4fb Server: Use readonly where appropriate (#5902) 2019-10-21 16:12:32 +10:30
Lusamine
6785111e32 Update datacenters & ip-tools (#5901) 2019-10-20 20:42:45 +10:30
Lusamine
4497dce723 Update datacenters & IP-tools (#5880) 2019-10-13 19:28:35 -04:00
Lusamine
3c8ced43af Update datacenters and IP-tools (#5849) 2019-10-05 14:53:21 +10:00
Guangcong Luo
cc42db1b5c Improve workaround for TypeScript Promise.all bug 2019-10-03 23:02:36 +10:00
HoeenHero
b055697237 Fix more typing in preperation for TS 3.7.0 2019-10-01 21:44:09 -04:00
Lusamine
bab655fbf6 Update datacenters and IP-tools (#5823) 2019-09-27 17:00:52 +09:30
Lusamine
ba1a7cdee7 Update datacenters and ip-tools (#5801) 2019-09-21 12:06:17 +09:30
Marty-D
6d48520345 IPTools: Update proxies 2019-09-15 15:15:54 -04:00
whales
52a5312550 Fix bug in IPTools#testConnection (#5763) 2019-09-07 02:03:09 -05:00
Lusamine
b69a7800d4 Update IPTools and datacenters (#5762) 2019-09-06 20:33:51 -04:00
Ben Davies
166efd79d9 Fix typo in IPTools 2019-08-28 19:20:01 -03:00
Marty-D
3ab1db925c
IPTools: Update proxy list 2019-08-04 11:42:05 -04:00
Guangcong Luo
cb858bce1b Add sonic.net to residential ISP list 2019-07-15 00:23:07 -04:00
Marty-D
80da1aa377
IPTools: Update proxy lists 2019-07-14 21:29:53 -04:00
Ben Davies
d4c479686c Use dns.lookup over dns.resolve4 in IPTools.dnsblQuery
This helps prevent DNS poisoning attacks if the platform supports DNSSEC
since dns.resolve4 uses c-ares, which doesn't support DNSSEC.
2019-07-08 21:39:44 -03:00
Kirk Scheibelhut
0941b9b546 Fix lint error in server/ip-tools.ts 2019-06-29 07:28:58 -07:00
Guangcong Luo
82e8dc6ea1 Add proxy IP detector to IPTools
By default, PS doesn't have very many tools for dealing with ban
evaders on proxies - most of the main server's protection is in private
code.

This commit adds a basic IP evaluator to PS. It categorizes IPs into
residential, mobile, and proxy (and a few other determinations), and
locks proxy IPs by default. DNSBL entries remain semilocked.

This behavior can, as always, be customized via hostfilter. Detect
`user.locked === '#hostfilter'` for the proxy IP lock, which you can
just set `user.locked = null` to disable.

Fixes #5239
2019-06-27 10:25:19 -07:00
Guangcong Luo
e1c364fb79 Refactor DNSBL -> IPTools
This is mostly a TypeScript refactor, but it does come with several
renames:

Dnsbl -> IPTools
Dnsbl.query -> IPTools.queryDnsbl
Dnsbl.reverse -> IPTools.getHost
2019-05-14 10:57:08 +10:00