show the referrer
This commit is contained in:
@@ -116,6 +116,7 @@ app.get(/\/([a-z0-9]+\/stats)/, function (req, res) {
|
|||||||
|
|
||||||
app.get(/\/([a-z0-9]+)/, function (req, res) {
|
app.get(/\/([a-z0-9]+)/, function (req, res) {
|
||||||
var link = req.params["0"];
|
var link = req.params["0"];
|
||||||
|
console.log("Referer", req.get("Referer"));
|
||||||
log(req.ip, "open note", link);
|
log(req.ip, "open note", link);
|
||||||
if (CACHE.has(link)) {
|
if (CACHE.has(link)) {
|
||||||
log(link, "is cached!");
|
log(link, "is cached!");
|
||||||
|
|||||||
Reference in New Issue
Block a user