Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

How to tell Google not to index a - decorative - video element?

         

Jori

9:20 am on Jun 2, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hello,

I created a website in HTML5, where the top banner of pages has a small video looped only for decorative purposes.

The issue : Google Video search thinks it's a good video to index! So when I search for my website in the Google Video search, it shows me all of my pages with the video banner.
My real video content is lost in all of these indexed banners.

I don't know how to solve this. No robots.txt can save me here. Any idea?

Thanks in advance :)

not2easy

2:35 pm on Jun 2, 2015 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If you can place the small video in its own folder and alter your src= link to the changed URI then you can noindex it by placing a X-robots noindex header as it loads. Naming the folder is up to you, but for example instead of
src="/my video.swf"
it could be at
src="/private/myvideo.swf"
and in the /private/ folder you would add .htaccess with only one line:
Header append X-Robots-Tag: noindex


I hope that helps.