Issue
I have a folder on my site (media) that I do not want the public to access, even if they know the full file names.
I believe this is done with chmod controls but not sure. How can I limit access so that only my Server is able to access all of the contents within the directory (css, js, mainly PDF files).
Solution
In your httpd.conf or an included .conf file add:
<Directory /dir/to/be/protected>
AllowOverride None
<Limit GET POST OPTIONS>
Order deny,allow
Deny from all
</Limit>
</Directory>
Answered By - awm Answer Checked By - Dawn Plyler (WPSolving Volunteer)