Implement noindex tag - mailwatch login page

Questions and answers about how to do stuff
Post Reply
mattch
Posts: 47
Joined: 28 Mar 2018 22:26

Implement noindex tag - mailwatch login page

Post by mattch »

Hello!
My mailwatch login page is showing up on google search and I dont want that.
Google suggest adding the "noindex" tag in the header or with an http response.
If it wasnt already indexed then the robots.txt should work too.

Code: Select all

<head>
<meta name="robots" content="noindex">
...
Is it ok to add this to /var/www/html/index.html to get the job done?
like this

Code: Select all


<!DOCTYPE html>
<html>
    <head>
    <meta name="robots" content="noindex">
    <title>MailWatch</title>
    <meta http-equiv="refresh" content="0; url=/mailscanner/" />
    </head>
    <body>
    </body>
</html>

Thank you
Post Reply