Starting off with 80/2317 identified hostnames

This commit is contained in:
Austin Burk
2022-08-23 14:40:19 -04:00
parent 692d666dd3
commit f26c52926b
7 changed files with 2580 additions and 0 deletions

24
fetch_list.js Normal file
View File

@ -0,0 +1,24 @@
// fetch the blacklisted servers from https://sessionserver.mojang.com/blockedservers and stick it in data/current.txt
// import http, path, and fs
var http = require('https');
var path = require('path');
var fs = require('fs');
var current_path = path.join(__dirname, 'data', 'current.txt');
// fetch the blacklisted servers from https://sessionserver.mojang.com/blockedservers
http.get('https://sessionserver.mojang.com/blockedservers', function(res) {
var body = '';
res.on('data', function(chunk) {
body += chunk;
}).on('end', function() {
// write the blacklisted servers to data/current.txt
fs.writeFile(current_path, body, function(err) {
if (err) {
console.log(err);
}
});
})
})