Use 302 http status for blacklisted redirects
Co-authored-by: Wildan M <willnode@wellosoft.net>
This commit is contained in:
parent
ef05953c24
commit
2cadd68506
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ const listener = async function (req, res) {
|
||||||
resolveCache[host] = cache;
|
resolveCache[host] = cache;
|
||||||
}
|
}
|
||||||
if (cache.blacklisted) {
|
if (cache.blacklisted) {
|
||||||
res.writeHead(cache.httpStatus, {
|
res.writeHead(302, {
|
||||||
'Location': (process.env.BLACKLIST_REDIRECT || 'https://forwarddomain.net/blacklisted') + "?d=" + req.headers.host,
|
'Location': (process.env.BLACKLIST_REDIRECT || 'https://forwarddomain.net/blacklisted') + "?d=" + req.headers.host,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue