New answers tagged attachments
0
votes
How to restrict access to uploaded files?
This worked for me. You can prevent access to the wp-content/upload folder (excluding logged in users) by creating a .htaccess file and adding the following rewrite rule:
# Disable directory browsing
...
Top 50 recent answers are included
Related Tags
attachments × 999images × 275
uploads × 117
media × 99
media-library × 78
posts × 68
post-thumbnails × 55
gallery × 48
wp-query × 45
custom-field × 43
php × 42
custom-post-types × 41
functions × 41
customization × 41
post-meta × 41
plugins × 35
permalinks × 26
plugin-development × 25
theme-development × 23
attachment-fields-to-edit × 20
categories × 19
filters × 19
urls × 18
get-posts × 18
loop × 17