Postal: No Index, No Follow - Remove from Index

Created on 29 Aug 2020  路  4Comments  路  Source: postalhq/postal

Please change the application in order it does not index in Serps.

enhancement

All 4 comments

It should be possible to add some headers to the NGINX proxy config to achieve this.

I believe the quick answer is to add the following to the location blocks in nginx

add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";

but it might be more useful to add in the meta tag to the html and haml.

To make sure nothing is indexed I added to all path/pages/assets:

UPDATED to remove extra space as per @willpower232 comment.

location / {
    add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
    ....
}

location /assets {
    add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
    ....
}

location @puma {
    add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
    ....
}

@Igcorreia I've just spotted that there is an extra space between add_header and X-Robots-Tag so you should remove that so the header is correct and not X-Robots-Tag. I'll update my original comment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

destroyer998 picture destroyer998  路  5Comments

moskoweb picture moskoweb  路  6Comments

ILoveYaToo picture ILoveYaToo  路  3Comments

igerzog picture igerzog  路  5Comments

broskees picture broskees  路  4Comments