No description http://redir.ee
Find a file
Rasmus Moorats 1129f5f9a8
Some checks failed
build / build (push) Failing after 2s
bug fix 3: rise of the debugger
2023-10-21 17:45:10 +03:00
.gitea/workflows use akito13 nim image 2023-10-21 17:06:33 +03:00
src bug fix 3: rise of the debugger 2023-10-21 17:45:10 +03:00
.gitignore initial commit 2023-10-20 17:11:41 +03:00
Dockerfile use akito13 nim image 2023-10-21 17:06:33 +03:00
LICENSE.txt add a readme and MIT license 2023-10-21 16:22:25 +03:00
nim.cfg add Dockerfile 2023-10-21 16:54:57 +03:00
README.txt add a readme and MIT license 2023-10-21 16:22:25 +03:00
redir.nimble rework redirection system 2023-10-21 16:12:12 +03:00

open redirector

usage:

  * /[url]      - redirect to an URL
  * /?url=[url] - redirect to an URL
  * /base64     - redirect to a base64-encoded URL

  Redirect to any location using the `Location` header.
  Supply the `code` query with a valid 3xx HTTP status
  code to use a specific one. Otherwise, `302 Found` is used


examples:

  * http://redir.ee/file:///etc/shadow
    - redirects to file:///etc/shadow

  * http://redir.ee/?url=http://example.com
    - redirects to http://example.com

  * http://redir.ee/base64?url=aHR0cDovL2V4YW1wbGUuY29t&code=303
    - redirects to http://example.com with HTTP code 303


pre-defined shortcuts (`code` works here too):

  * /metadata    -  http://169.254.169.254/latest/meta-data/
  * /metadata6   -  http://[fd00:ec2::254]/latest/meta-data/
  * /localhost   -  http://127.0.0.1
  * /localhost6  -  http://[::1]
  * /zeroes      -  http://0.0.0.0
  * /passwd      -  file:///etc/passwd
  * /services    -  file:///etc/services
  * /env         -  file:///proc/self/environ


source code: https://git.dog/xx/redir