dewe1842
New Creator

X-Header for Excelfiles

Hello everyone,

we don't want specific Excelfiles, that are linked on our website, to be shown in searchengines.

Does anyone know a way to set a X-Header in an Excelfile so this isn't the case anymore? 

Thank you in advance!

 

Sincerely,
Nikolai Lasarzick

0 Kudos
2 Replies
Windmüller
Crownpeak employee

Google supports the X-Robots-Tag header. I am not sure if other search engines honor this as well.

Another solution would be adding the files to the robots.txt file.

0 Kudos
cube
Occasional Observer

Hi Nikolai,

If you are using the X-Robots tag header, something like this might help:

To use the X-Robots tag on an Apache server, add the following code to your website's .htaccess or httpd.config file.

<Files ~ ".xlsx$">
  Header set X-Robots-Tag "noindex, nofollow"
</Files>

Kind regards,
cube

0 Kudos