Three questions about the upload folder

[ad_1]

Three questions about the upload folder:

1. Is there any reason not to lock it down from direct linking to images, pdfs, etc in the wp-content/uploads/ folder? Any unintended consequences?
2. I use Yoast SEO and let it change media links from custom pages to direct links. Does that change the answer above?
3. Any reason why doing the above in code or using a plugin is a better choice? I’m leaning toward doing it in code since this does not seem like something that will require much maintenance (bonus questions: accurate or foolish thinking?)

For clarity, my plan is to restrict access via the .htaccess file in the root folder of WordPress. Nothing fancy, I do not see files.

Thanks all in advance!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer