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
User avatar
pdwalker
Posts: 1564
Joined: 18 Mar 2015 09:16

Re: Implement noindex tag - mailwatch login page

Post by pdwalker »

As a security suggestion, you shouldn't be exposing your efa box to the internet.

It is more secure to keep it accessible via a vpn.

As for your suggested changes, that should be fine but remember your changes could get overwritten after an update of efa.

Keep track of any changes you make so you can reapply them after an update.
Post Reply