sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 4aeb397ef388962380cb5ce5b3de48bd22dbfb40
parent 5d731c6bf951ab1cd0859af70fa96dcd5888714c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 20 Apr 2019 13:45:59 +0200

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.

Diffstat:
Msfeed_frames.c | 2++
Msfeed_html.c | 1+
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git 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 @@ -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"