Disallow indexing of all file pages
This commit is contained in:
@@ -60,6 +60,9 @@ func (wc *WebController) serveFileViewer(w http.ResponseWriter, r *http.Request,
|
||||
return
|
||||
}
|
||||
|
||||
// Prevent search engines from indexing this page for privacy reasons
|
||||
w.Header().Set("X-Robots-Tag", "noindex, nofollow")
|
||||
|
||||
var err error
|
||||
var ids = strings.Split(p.ByName("id"), ",")
|
||||
var templateData = wc.newTemplateData(w, r)
|
||||
@@ -142,6 +145,9 @@ func (wc *WebController) serveListViewer(w http.ResponseWriter, r *http.Request,
|
||||
return
|
||||
}
|
||||
|
||||
// Prevent search engines from indexing this page for privacy reasons
|
||||
w.Header().Set("X-Robots-Tag", "noindex, nofollow")
|
||||
|
||||
var templateData = wc.newTemplateData(w, r)
|
||||
var list, err = templateData.PixelAPI.GetListID(p.ByName("id"))
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user