Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
487 B
1
Indexable
Never
//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}`);
});