{"id":14242773,"date":"2021-03-27T12:58:02","date_gmt":"2021-03-27T12:58:02","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/executable-pdf-file\/"},"modified":"2021-03-27T16:12:09","modified_gmt":"2021-03-27T16:12:09","slug":"executable-pdf-file","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/executable-pdf-file\/","title":{"rendered":"Executable .pdf File"},"content":{"rendered":"<p>Hello,<br \/>\nI have tested that a file restrction work fine with logged users. But when user write the path to browser, then display without deny any file in the library folder ( Tested in private Mode )<br \/>\nShortcode<br \/>\n<code>[library-viewer have_file_access=&quot;logged_in&quot;]<\/code><\/p>\n<p>Here the .htaccess code<\/p>\n<pre><code>Order Allow,Deny\nAllow from all\n&lt;Files ~ &quot;\\.(gif|jpg|png|pdf|doc|excel)$&quot;&gt;\nDeny from all\n&lt;\/Files&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-14242773","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14242773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14242773\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14242773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}