summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-04-20 13:45:59 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-04-20 13:45:59 +0200
commit4aeb397ef388962380cb5ce5b3de48bd22dbfb40 (patch)
treed6bd8c455845fc07bcf265af8addf00a0692bd55
parent5d731c6bf951ab1cd0859af70fa96dcd5888714c (diff)
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.
-rw-r--r--sfeed_frames.c2
-rw-r--r--sfeed_html.c1
2 files changed, 3 insertions, 0 deletions
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("<!DOCTYPE HTML>\n"
"<html>\n"
"\t<head>\n"
+ "\t<meta name=\"referrer\" content=\"no-referrer\" />\n"
"\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
"\t<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />\n"
"</head>\n"
@@ -167,6 +168,7 @@ main(int argc, char *argv[])
fputs("</div></body></html>\n", fpmenu);
}
fputs("<!DOCTYPE html>\n<html>\n<head>\n"
+ "\t<meta name=\"referrer\" content=\"no-referrer\" />\n"
"\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
"\t<title>Newsfeed (", 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"