mirror of
https://github.com/writefreely/writefreely
synced 2024-11-28 11:30:18 +00:00
Add 'X-Robots-Tag: noindex' header to invite URLs
This instructs search engines to not index invite links.
This commit is contained in:
parent
8e8eb3c563
commit
6f3b502e65
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@ func handleViewInvite(app *App, w http.ResponseWriter, r *http.Request) error {
|
|||
p.Error = "This invite link has expired."
|
||||
}
|
||||
|
||||
// Tell search engines not to index invite links
|
||||
w.Header().Set("X-Robots-Tag", "noindex")
|
||||
|
||||
// Get error messages
|
||||
session, err := app.sessionStore.Get(r, cookieName)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue