Skip to content

jcsaaddupuy/dereferer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dereferer

Stupid, simple, self-hostable, dereferer.

Why ?

Using a dereferer is cool. A selfhosted one is better.

Features

Simply redirect your browser, hiding your referer.

Also follow url shotners links (bit.ly, goo.lg,...) to extract the final url and remove annoyings parameters (utm*).

Installation from sources

python setup.py install

Running in dev mode with manage.py

dereferer-manage runserver -p 8000

Running with gunicorn

gunicorn -w 4 dereferer:app

nginx setup examples

In a sub location, with caching :

location /d {
    rewrite ^/d/(.*)$ /$1 break;
    expires 1M;

    # with 'cache' a zone defined a nginx http level
    proxy_cache cache;

    proxy_cache_valid      200  15d;
    proxy_cache_use_stale  error timeout invalid_header updating http_500 http_502 http_503 http_504;

    proxy_pass  http://127.0.0.1:8000/;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Scheme $scheme;
    proxy_set_header X-Script-Name /d;

}

Demo

No demo, sorry. Host it yourself !

TODO

Fork, hack, PR welcomes.

About

Stupid, simple, self hostable, dereferer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages