Dummies guide to deindexing WP Media files (gated content)?
This feels like a really stupid question but I’m a general marketer and I can’t find an adequate answer online.
The WordPress website I’m working on has several PDFs that are gated behind a contact form (button links to Media URL). I noticed recently that one of the PDFs was showing in search results, so I requested a removal via Search Console but this is only a temporary removal.
I use Yoast for indexing usually but it doesn’t display on WordPress Media items. Suggestions online include adding it to Robots.txt but I don’t want to display the Media item’s URL anywhere (needs to be completely inaccessible other than those with a direct link / directed via contact form).
Any idea on how I can de-index these Media URLs? I’m not too comfortable with adding in code (I have to use the built in Theme Editor as I don’t have server access). I was thinking otherwise I might have to change it so the button downloads the file to your computer rather than opening in a URL.