Answer the question
In order to leave comments, you need to log in
How to close a file in Wordpress for unauthorized people?
Good day to all! I do not know where to dig. There are pdf, doc files on the site. For authorized users, they are available through the menu item, which will appear after he has logged in. Everything would be fine, but! When searching through Google with methods such as filetype, site:, etc. is shown in the results and shows and allows these files to be downloaded without checking for authorization. Can this be solved with .htaccess? Plugins or something to finish = will you have to add?
Answer the question
In order to leave comments, you need to log in
It is more correct to give not a direct link, but a link "living" for some time and tied to, for example, ip.
close the directory with files through .htaccess
, check if the user is authorized and give the file using php, it's the easiest way
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question