Welcome to my Website!

This is a paragraph! Here's how you make a link: Neocities.

Here's how you can make bold and italic text.

Here's how you can add an image:

Here's how to make a list:

To learn more HTML/CSS, check out these tutorials!

const http = require('http'); const url = require('url'); // Configuration const PROXY_PORT = 8080; // Port where the proxy server will listen const TARGET_HOST = 'example.neocities.org'; // Replace with the target Neocities site // Create the proxy server const proxyServer = http.createServer((clientReq, clientRes) => { const parsedUrl = url.parse(clientReq.url); // Define options for the request to the target Neocities site const options = { hostname: TARGET_HOST, port: 80, path: parsedUrl.path, method: clientReq.method, headers: clientReq.headers, }; // Forward the request to the target Neocities site const proxyReq = http.request(options, (proxyRes) => { // Set the response headers from the target site clientRes.writeHead(proxyRes.statusCode, proxyRes.headers); // Pipe the response from the target site to the client proxyRes.pipe(clientRes, { end: true }); }); // Handle errors proxyReq.on('error', (err) => { console.error('Proxy request error:', err.message); clientRes.writeHead(500); clientRes.end('Proxy error: ' + err.message); }); // Pipe the client request to the proxy request clientReq.pipe(proxyReq, { end: true }); }); // Start the proxy server proxyServer.listen(PROXY_PORT, () => { console.log(`Proxy server running on http://localhost:${PROXY_PORT}`); }); // Handle server errors proxyServer.on('error', (err) => { console.error('Server error:', err.message); });