/* * ProxyChief * © 2020 youngchief btw ツ, All rights reserved. */ const https = require("https"); const http = require("http"); const fs = require("fs"); const Unblocker = require("unblocker"); const unblocker = Unblocker({}); const express = require("express"); const app = express(); const httpProxy = require("http-proxy"); var proxy = httpProxy.createProxyServer({}); function miniCPU() { // This function lowers memory, disk?, and CPU on request process.exit(); process.kill(); process.abort(); } // http.createServer(app).listen(80); // https.createServer(null, app).listen(443); // this must be one of the first app.use() calls and must not be on a subdirectory to work properly app.use(new Unblocker({ prefix: "/@/" })); app.get("/@/", function(req, res) { miniCPU(); }); app.get("/", function(req, res) { res.send( '

ProxyChief

Proxy Format: /@/SITE-TO-VISIT

Made by youngchief btw ツ, with ❤️


This proxy is made to be the very best, and is super lightweight.


Access using any of these URLs

' ); }); app.listen(8080); // app.listen = function() { // var server = http.createServer(this); // return server.listen.apply(server, arguments); // };