You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.6 KiB
33 lines
1.6 KiB
var express = require('express');
|
|
|
|
var router = express.Router();
|
|
|
|
|
|
router.get('/detect_rules', function(req, res, next) {
|
|
|
|
console.info('GET /func/detect_rules nodeId:', req.query.node_id)
|
|
|
|
let thatData = [
|
|
{"regex":"BitTorrent protocol","id":1},
|
|
{"regex":"(api|ps|sv|offnavi|newvector|ulog\\.imap|newloc)(\\.map|)\\.(baidu|n\\.shifen)\\.com","id":2},
|
|
{"regex":"(.+\\.|^)(360|so)\\.(cn|com)","id":3},
|
|
{"regex":"(Subject|HELO|SMTP)","id":4},
|
|
{"regex":"\\b(dafahao|minghui|dongtaiwang|epochtimes|ntdtv|falundafa|wujieliulan|qxbbs|tuidang|rfi)\\.(org|com|net|fr)","id":5},
|
|
{"regex":"(torrent|\\.torrent|peer_id=|info_hash|get_peers|find_node|BitTorrent|announce_peer|announce\\.php\\?passkey=|Joker)","id":6},
|
|
{"regex":"(^.*\\@)(guerrillamail|guerrillamailblock|sharklasers|grr|pokemail|spam4|bccto|chacuo|027168)\\.(info|biz|com|de|net|org|me|la)","id":7},
|
|
{"regex":"(.?)(sandai0|XLLiveUD0)(.)","id":8},
|
|
{"regex":"(.*\\.||)(guanjia\\.qq\\.com|qqpcmgr|QQPCMGR)","id":9},
|
|
{"regex":"\\b(rising|kingsoft|duba|xindubawukong|jinshanduba)\\.(com|net|org)","id":10},
|
|
{"regex":"(.*\\.||)(fast|cachefly|speedtest)\\.(cn|org|com|net|de)","id":11},
|
|
{"regex":"\\b(pincong|mohu|wujieliulan|epochtimes|voachinese|bbc|nytimes|landofhope)\\.(rocks|com|tv)","id":16},
|
|
{"regex":"netbox\\.ipip\\.net","id":17},
|
|
{"regex":"\\b(paramount|warnermedia|viacomcbs)\\.(rocks|com|tv)","id":18}
|
|
]
|
|
let result = {ret:1, data: thatData}
|
|
|
|
console.info('GET /func/detect_rules result:', result)
|
|
res.send(result)
|
|
});
|
|
|
|
|
|
module.exports = router;//暴露模块
|
|
|