Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anon5r/notrack-redirector
https://github.com/anon5r/notrack-redirector
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/anon5r/notrack-redirector
- Owner: anon5r
- Created: 2022-08-20T07:57:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T16:38:26.000Z (over 1 year ago)
- Last Synced: 2024-06-20T23:56:01.790Z (7 months ago)
- Language: Go
- Size: 3.22 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Anti-Tracking URL Redirector
====Bypass URLs for affiliate advertising and tracking and redirect directly to the original destination URL in the parameters.
It can be used by DNS transitioning the hostname of the tracking service to the host where this service is running.
However, _services that use HTTPS will be detected as invalid URLs._
# What can I do
If a specific parameter is included, it is taken as the URL to redirect to and a Location header is returned
# How to Build
## Go
```shell
$ go build -o dist/track-redir src/main/main.go
```## Docker
```shell
$ docker build -t track-redir:latest -f docker/golang/Dockerfile .
```### Running on Docker container
```shell
$ docker run --rm --name redirgo -p 9090:9090 track-redir
```# Debug
## Go
```shell
$ go run src/main/main.go
```then you can go http://localhost:9090
# Supported track URL patterns
- https://px.a8.net/svt/ejp?a8mat=http...
- https://hb.afl.rakuten.co.jp/ichiba/123456abc....a6bc789d/...?pc=http...&m=http...
- https://hb.afl.rakuten.co.jp/hgc/123456abc.....a6bc789d/...?pc=http...
- https://ck.jp.ap.valuecommerce.com/servlet/referral?sid=...&pid=...&vc_url=http...