Untitled
unknown
plain_text
3 years ago
487 B
9
Indexable
//This script creates a proxy server to access blocked websites
const http = require('http');
const httpProxy = require('http-proxy');
const proxy = httpProxy.createProxyServer({});
const port = 8080;
http.createServer((req, res) => {
//Change the target website to the one you want to unblock
const target = 'http://www.example.com';
proxy.web(req, res, { target });
}).listen(port, () => {
console.log(`Proxy server listening on port ${port}`);
});
Editor is loading...