Protect uploaded files from access through Google
How do I prevent the uploaded files from being found on Google and accessed without being logged in? I just found out that even though I set the restrictions to only registered members to have access to the forum, you still could see some of the topics without being logged in. Which was weird in itself. But I managed to fix that by making the shortlink a restricted page in Wordpress. But now if I search for members of my organization in google, I can find an uploaded xls-file that contains everyone’s personal information. Without having access to the forum. Can anyone help me?
You can stop search engines indexing your attachments using a simple command in robots.txt file of your website root directory. Just put these links in the robots.txt file:
More info in this article:
So I tried the stop indexing thing, created a robots.txt with the code in it. But it stills shows up in Google. I deleted my cookies, thinking that might be the thing that made it still show up, and even used another browser, but it's still there...
I removed the files that showed up in Google and sent a request for removal, as it can't be accessed by clicking it, but is still viewable in the cache. Only thing that still won't work is removing it from the Google Search.
But the fact remains that if I have the link to a file on the forum, I can get access to it, even when I'm not logged in.
Well, I've followed the instructions AND made the robots.txt file. But the files are still showing up in Google when doing a search on a name. I don't understand how someone has to be logged in to view the content of the forum, but Google can grab its files (even with the robots.txt file) and anyone (without excess to the forum) can download it when it shows up in Google Search.
How can I fix it?