Skip to content

Minimal HTTP to HTTPS redirector server.

License

Notifications You must be signed in to change notification settings

emp-code/SecuRedir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

SecuRedir

Minimal HTTP to HTTPS redirector server.

All connections to port 80 are answered with a 301 redirect.

Must be started as root. Switches to the user nobody after binding the socket.

Performs no reading, outputs nothing. Runs until killed.


Compile: gcc -Ofast -march=native -pipe -o SecuRedir SecuRedir.c

Use: ./SecuRedir example.com

The parameter determines the URL to redirect to (https:// is added to the beginning). It can be a bare domain, a subdomain, or a full URL.

About

Minimal HTTP to HTTPS redirector server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages