Upload files at anywhere ( normally create your own folder inside wp-content/uploads folder ), you can create .htaccess file and index.html files inside the folder to restrict the files from direct access.
Keep index.html blank and add deny from all text in .htaccess file.
Related Posts:
- simple solution for restricting access to (some) uploads/downloads
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- What permissions does wp-content/uploads need?
- can not upload file .vtt on wordpress 5.0.1
- What are the security reasons to disallow Microsoft Word uploads?
- Password protect some uploaded files, so only logged-in users can view them
- How to protect uploads in multisite if user is not logged in?
- File Upload Permissions
- Setting wp_temp_dir and permissions not working for “Missing A Temporary Folder” error
- wp_temp_dir does not change the /tmp temporary default directory
- Extend the list of MIME-types supported by the builtin uploader in 3.3
- Can’t write pdf file to upload directory using FPDF
- Change default uploads file using wp Skeleton
- Adding Adobe files to a wordpress site [closed]
- Placing assets for external use
- How to safely allow user upload on CPTs?
- WordPress HTTP Error on File upload
- Interface for logged-in users to upload/download files
- making media URL secured
- Is it safe to allow non-admin users access to media uploader
- Is it safe to upload JSON files to upload folder?
- Right way to download file from source to destination
- Setting up a HIPAA secured form / file upload
- Uploaded images result in a file url with full path on disk appended
- Creating an .ics calendar subscription service with wordpress
- WP upload/select image , isn’t this a security issue?
- What is the best way to upload a temporary & sensitive file and then delete it when done
- Private file system for attachments
- Basic File/Post restriction plugin
- Auto shortlink for file uploads
- How to parse an image that was just uploaded to make sure it doesn’t contain malicious code?
- How to Require a Minimum Image Dimension for Uploading?
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Get $image_id after uploading with media_sideload_image()
- Organize uploads by year, month and day
- Different upload directory based on post type in a theme
- Media not actually deleted on disk when click “Permanent Delete”
- Could a large quantity of files in the uploads folder affect performance?
- WP 3.5 media manager – how to create a working gallery frame
- I want to replace a media file (pdf) with an updated version
- WordPress Media Manager – limit to specific mime type
- Override json encoding in rest api
- Prevent users from accessing mp3s in my uploads folder?
- How to limit file type to be upload?
- Benefits of storing uploads in an assets folder?
- How to Check Disk Space used by Media Library
- Add/change multipart_params parameter when uploading post image
- Use WP_Filesystem to list files in directory
- White-list file types for media upload
- Gravity Forms – Repeatable “File Upload” field using “gform_column_input_content” filter [closed]
- Add a YouTube or Vimeo video as a post attachment?
- Upload files to wp-content/uploads – What to add in DB?
- Front-end Image Upload with Preview – Is this Possible in WP?
- Hook or function to upload media via url
- wp_generate_attachment_metadata generates 503 Service Unavailable or 500 timeout errors
- wp_enqueue_media() Will not load JS on the theme
- media sideload image not working with JPG file
- programmatically create posts from files in a folder
- What permissions should I give directories if I want to make WordPress more secure?
- How do I insert an already uploaded video file into my Media Library?
- Media Gallery Upload photo incorrect way like glitch
- Extra “uploads” added in path
- Is it possible to use media_sideload_image to upload local files?
- How to switch to year/month directory structure format from a single folder
- Original image not saving?
- Restrict role to view own media
- Create featured image from a remote url when creating a post
- Image resizing – TimThumb vs convert on upload?
- File names are being overridden when uploading new media
- Patient portal using wordpress
- Change the look of the media uploader
- Thumbnail images missing in WP media library
- Using Windows Server 2012 How to Move Uploads Folder to another hard drive
- get_attached_file returns wrong path after changing media upload dir
- How to adapt upload_dir to save files outside of WP uploads folder
- wp_enqueue_media() and upload_mimes problem
- Reattach media after moving to another server
- Upload a custom csv file, read contents and delete that file
- Can i add custom meta box (Media Uploader) at Category Description
- Complicated image name like flickr does and deny access just to original image
- How to change Route respond To A specific Path?
- What is wrong with my wp_insert_attachment code?
- Editor User Role can’t see other users media
- How to allow .ged file uploads
- Media files not loading
- Set attachment category from file name on upload
- HTTP Error WordPress on IIS uploading image
- What folder to place Large Video files?
- _d_improd_ directory in uploads breaking site images
- Drag and Drop Media Not Working in Windows 10 Edge Browser
- Exclude some photos in media library
- Failed to load resource at admin screen
- Upload more than one media files with a post
- uploading photos
- How to handle image resize in media_handle_sideload?
- Image uploaded in media library, can only see it when I using the WP Edit Image feature. 404 when trying to view in browser
- Single file upload
- Add frontend editor with media buttons for Visitors and display only their media
- WordPress Custom Fonts Problem! [closed]
- I want to customize wp.media (the wordpress admin uploader) in order to change the file name but only in video custom post type