fiskhandlarn / dontvis.it

:no_entry_sign: dontvis.it, the idiot circumventor tool
MIT License
0 stars 0 forks source link

Redirect for both http and https urls? #6

Closed fiskhandlarn closed 4 years ago

fiskhandlarn commented 4 years ago

ATM this only seems to be happening for http urls:

if(strpos($url, "http:") !== false) {
    $str = $url;
    $str = preg_replace('#^https?:/#', '', $str);
    header("Location: http://".$_SERVER['HTTP_HOST'].$str, true, 303);
}