I would like to know if restricted files will be indexed by Google ?
If it does, what happens if someone try to open it ?
In fact, does your plugin only restrict file displaying on website, or it also restrict access via file path ?
Example : I have a file that only logged users can see on my website. Its path should be : https://mywebsite.com/download/file.pdf
What happens if anyone find the path of this file and try to access it ?