A
A
Altyn Bek2015-09-25 15:53:12
WordPress
Altyn Bek, 2015-09-25 15:53:12

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

3 answer(s)
L
littleguga, 2015-09-25
@littleguga

It is more correct to give not a direct link, but a link "living" for some time and tied to, for example, ip.

M
MetaDone, 2015-09-25
@MetaDone

close the directory with files through .htaccess
, check if the user is authorized and give the file using php, it's the easiest way

A
Alexander Taratin, 2015-09-25
@Taraflex

robot.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question