mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
web challenge redirects
This commit is contained in:
parent
4f7fb2cebe
commit
372e704a58
6 changed files with 50 additions and 30 deletions
|
@ -473,6 +473,27 @@ _request_set_topic(source, mc, data, vars, b) {
|
|||
#endif
|
||||
|
||||
#if HAS_PORT(HTTP_PORT, HTTP_PATH) || HAS_PORT(HTTPS_PORT, HTTP_PATH)
|
||||
// for GDPR compliance server owners are expected not to log these messages
|
||||
htnotify(query, headers, mc, fmt) {
|
||||
if (query["from"] == "") query["from"] = 0;
|
||||
if (query["location"] == "") query["location"] = 0;
|
||||
|
||||
// should be renamed into _notice_examine_web_place
|
||||
castmsg(ME, "_notice_place"+(mc || "_examine_web"),
|
||||
fmt || "[_nick_place] viewed on [_web_on] coming from [_web_from].",
|
||||
([ "_web_referrer" : query["from"] || "bookmark",
|
||||
"_web_page" : query["location"] || headers["referer"] || "",
|
||||
"_web_browser" : headers["user-agent"] || "",
|
||||
"_web_on" : query["location"] || headers["referer"] ||
|
||||
headers["user-agent"] || "",
|
||||
"_web_from" : query["from"] ||
|
||||
query_ip_name(this_interactive()) ||
|
||||
headers["user-agent"] || "http",
|
||||
"_host_name" : query_ip_name(this_interactive()) || "",
|
||||
"_nick_place" : MYNICK || "This place",
|
||||
]) );
|
||||
}
|
||||
|
||||
htget(prot, query, headers, qs, data, noprocess) {
|
||||
//P3((">> archetype.gen:htget(%O, %O, %O, %O, %O, %O)\n", prot, query, headers, qs, data, noprocess))
|
||||
# ifdef PLACE_SCRATCHPAD
|
||||
|
@ -629,22 +650,7 @@ htget(prot, query, headers, qs, data, noprocess) {
|
|||
}
|
||||
}
|
||||
# ifndef _flag_disable_notice_place_examine_web
|
||||
if (query["from"] == "") query["from"] = 0;
|
||||
if (query["location"] == "") query["location"] = 0;
|
||||
|
||||
// should be renamed into _notice_examine_web_place
|
||||
castmsg(ME, "_notice_place_examine_web", "[_nick_place] inspected on [_web_on] coming from [_web_from].",
|
||||
([ "_web_referrer" : query["from"] || "bookmark",
|
||||
"_web_page" : query["location"] || headers["referer"] || "",
|
||||
"_web_browser" : headers["user-agent"] || "",
|
||||
"_web_on" : query["location"] || headers["referer"] ||
|
||||
headers["user-agent"] || "",
|
||||
"_web_from" : query["from"] ||
|
||||
// query_ip_name(this_interactive()) ||
|
||||
headers["user-agent"] || "http",
|
||||
"_host_name" : query_ip_name(this_interactive()) || "",
|
||||
"_nick_place" : MYNICK || "This place",
|
||||
]) );
|
||||
htnotify(query, headers, "_examine_web");
|
||||
# endif
|
||||
|
||||
// this is usually not very interesting really.. like:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue