From 4aeb397ef388962380cb5ce5b3de48bd22dbfb40 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 20 Apr 2019 13:45:59 +0200 Subject: sfeed_frames, sfeed_html: do not send referer header Do not send referer header if the browser supports this tag. This makes sure in some browsers where referer hiding is not setup this header is still hidden. The proper way is to setup your browser environment however to strip/change the referer header and trim your browser footprint. --- sfeed_frames.c | 2 ++ sfeed_html.c | 1 + 2 files changed, 3 insertions(+) diff --git a/sfeed_frames.c b/sfeed_frames.c index 8ce9758..f6f679a 100644 --- a/sfeed_frames.c +++ b/sfeed_frames.c @@ -112,6 +112,7 @@ main(int argc, char *argv[]) fputs("\n" "\n" "\t\n" + "\t\n" "\t\n" "\t\n" "\n" @@ -167,6 +168,7 @@ main(int argc, char *argv[]) fputs("\n", fpmenu); } fputs("\n\n\n" + "\t\n" "\t\n" "\tNewsfeed (", fpindex); fprintf(fpindex, "%lu", totalnew); diff --git a/sfeed_html.c b/sfeed_html.c index a6547f4..56d56bf 100644 --- a/sfeed_html.c +++ b/sfeed_html.c @@ -93,6 +93,7 @@ main(int argc, char *argv[]) fputs("<!DOCTYPE HTML>\n" "<html>\n" "\t<head>\n" + "\t<meta name=\"referrer\" content=\"no-referrer\" />\n" "\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />\n" "\t</head>\n" -- cgit v1.2.3