Logs the client IPv4 address and redirects them to a target website.
Go to file
array-in-a-matrix ad3d0cb043 |path| 2022-05-09 13:57:54 -04:00
.gitignore ignore certs 2022-05-09 13:26:29 -04:00
LICENSE Initial commit 2022-02-04 10:39:28 -05:00
README.md added https 2022-05-08 15:33:16 -04:00
index.js |path| 2022-05-09 13:57:54 -04:00
package.json changed project from npm to pnpm 2022-05-09 13:13:41 -04:00
pnpm-lock.yaml changed project from npm to pnpm 2022-05-09 13:13:41 -04:00

README.md

IP Grabber

Logs the client IPv4 address and redirects them to a target website using Node.js.

The grabber will redirect the client to the first commandline argument (a link or IP) if it exists. Otherwise, it will use the default link defined in the code. 2 Node.js servers will be hosted on port 3030 (HTTP) and port 3031 (HTTPS) by default. If you plan on using HTTPS, you can generate a certificate using these commands:

openssl genrsa -out key.pem
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
mkdir cert && mv cert.pem key.pem cert && rm csr.pem