On this page
What this issue is
A visitor fills in a form and attaches a file: a CV, a passport scan, a medical letter, a project brief. Your site saves that file somewhere. If that place is public, the file has a normal web address, and anyone who knows the address can open it without logging in.
Why it costs you leads or sales
- Visitor uploads fileCV, ID or brief attached to a form
- File saved in public folderFor example /wp-content/uploads/form-files/
- Link shared or guessableEmailed, pasted in CRM, or predictable name
- Anyone opens the fileNo login needed; may be indexed
The break is where the file is saved to a public path.
How to check if your site has it
Submit a harmless test file
Fill in your own form and attach a dummy file with a clear name such as test-upload.pdf. Do not use a real personal document.
Find the file's URL
Open the notification email, the form's entries screen or your CRM record and copy the file link. If there is no link, check the storage location in your form tool's settings.
Open it while logged out
Paste the URL into a private window. If the file opens or downloads, it is public.
Test the folder
Remove the file name from the URL and load the folder, for example yoursite.com/wp-content/uploads/form-files/. If you see a file list, directory listing is on.
Search for indexed files
In Google, search site:yoursite.com filetype:pdf (repeat for docx, jpg, xlsx). Any private document in the results is already exposed.
Check your storage bucket
If you use S3 or similar, open the bucket's permissions and look for public read access or a public access block that is switched off.
How to fix it
Check your form plugin's upload setting
Many form plugins have an option to store uploads in a protected folder or to deliver them only as email attachments. Look in the plugin's settings and the individual field's settings for the storage location. Menu names vary by plugin.
Block direct access to the upload folder
On Apache, add an .htaccess file in the form upload folder with the rules in the snippet below. On Nginx, add a deny location for that path. Ask your host if unsure.
Turn off directory listing
Add Options -Indexes to .htaccess, or autoindex off on Nginx.
Remove old files
Delete files from past test submissions and from leads you no longer need.
Know where files go
Files uploaded through a theme or app form are usually stored on Shopify's file CDN (Settings > Files) or in the app's own storage. Files in Settings > Files have public URLs.
Choose an app with private storage
If you collect sensitive documents, use a form or upload app that states it stores files privately and gives expiring links. Check the app's documentation.
Delete files you do not need
Open Settings > Files, find customer uploads and delete them once they are processed.
Not a storage fix
GTM does not store uploaded files, so it cannot fix this. Make sure no tag sends file URLs to analytics or ad platforms, which would copy the link into other systems.
Avoid native file upload for sensitive files
Webflow form file uploads are delivered as links in submissions and in notification emails. Treat those links as sensitive, and check Webflow's current documentation on how they are stored and accessed.
Use a private upload service if needed
For IDs or medical documents, embed a dedicated secure upload tool that keeps files private, and delete files after processing.
Review file upload fields
Files uploaded through GoHighLevel forms are stored and linked from the contact record. Open a test contact, copy the file link and check it in a private window.
Limit what you ask for
Remove file upload fields you do not need, and delete uploaded files from contacts once the job is done.
Check the upload button settings
Wix form file upload fields save files to your site's file storage and share them in submissions. Test a submitted link in a private window.
Restrict who can see submissions
Limit collaborator roles and delete files you no longer need from the submissions area.
Check form storage
Squarespace file upload form fields store files and give a link in the submission. Test the link in a private window.
Use a private storage connection if needed
For sensitive documents, send files to a private storage service and keep only a reference in the submission.
Store files outside the web root
Save uploads in a directory the web server does not serve, or in a private bucket with public access blocked.
Serve through an authorised route
Add a download endpoint that checks the user's login and role, or generate a signed URL that expires in minutes.
Use random names
Rename files to long random names so they cannot be guessed, and validate type and size on the server.
# Place in the form upload folder's .htaccess
Options -Indexes
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>location ^~ /wp-content/uploads/form-files/ {
deny all;
return 403;
}
autoindex off;Public
- Files open without login
- Folder lists every file
- Search engines can index them
- Old test and lead files kept forever
Private
- Files return 403 or need a login
- Directory listing is off
- Links are signed and expire
- Files deleted when no longer needed
How to confirm it's fixed
Open the old URL in a private window
The file should return an access denied, 403 or login page, not the document.
Load the folder URL
You should see an error, not a file list.
Submit a new test upload
Confirm the new file is stored privately and that your team can still open it through the intended route, such as a login or signed link.
Ask search engines to drop old results
If files were indexed, use Google Search Console's Removals tool and make sure the URLs now return 403 or 404.
How to prevent it happening again
- Only ask for files you truly need
- Store uploads in a private folder or bucket with public access blocked
- Keep directory listing off on every server and environment
- Use signed, expiring links in emails and CRM records
- Set a retention rule and delete files after processing
- Restrict file types and size on the server
- Re-run the logged-out test after plugin, theme, host or storage changes
- Never send file URLs to analytics or ad pixels
How FunnelGuard handles this
What FunnelGuard does do is run your real lead journeys on a schedule, such as a form submission, and confirm the steps work and that the test lead reaches your inbox and CRM. That tells you the upload field still submits, but not whether the stored file is private.
To watch for this issue today, put a recurring reminder in your calendar to repeat the logged-out test above, especially after plugin or hosting changes. You can also run a Google search for site:yourdomain.com filetype:pdf each month, and review your storage bucket's public access settings in your cloud provider's console.
Questions people ask
Why are my form uploads publicly accessible?
Most form tools save files in a normal web folder, such as /wp-content/uploads/ on WordPress, or in a storage bucket set to public read. Any file there has a web address that works without a login. Move uploads to a private location and serve them through a login or expiring link.
How do I check if files uploaded through my form are public?
Submit a dummy file through your form, copy its URL from the email or entries screen, and open it in a private browser window where you are logged out. If it opens, it is public. Also load the parent folder to see if directory listing is on.
Can Google index files uploaded through my contact form?
Yes, if the files are publicly reachable and linked from somewhere crawlers can find, or the folder lists its files. Search site:yourdomain.com filetype:pdf to check. Fix access first, then use Google Search Console's Removals tool.
How do I turn off directory listing?
On Apache, add Options -Indexes to your .htaccess file. On Nginx, set autoindex off in the server or location block. Then load the folder URL to confirm it shows an error instead of a file list.
Is a public upload link a GDPR data breach?
It can be, if personal data was exposed to people who should not see it. Whether it must be reported depends on the facts, so take advice from your data protection contact or a lawyer. Closing the access quickly and recording what happened is the first step.
How do I share uploaded files with my team safely?
Use a login-protected area or a signed link that expires after a short time, rather than a permanent public URL. Give access by role, and delete files when the job is done.
Does FunnelGuard check whether my uploaded files are public?
No. FunnelGuard does not check this yet, though it is a possible future check. It does run your real form journeys and confirms test leads arrive, so you can pair it with a manual logged-out test of your upload links.
Related issues
- DLV-241Submission export/entries page publicly accessibleFix guide
- DLV-239Form submissions stored indefinitely in the WordPress databaseFix guide
- DLV-249Form plugin vulnerability exposes entriesFix guide
- DLV-240Lead data emailed in plain text with sensitive infoFix guide
- DLV-248Data stored outside allowed region (GDPR)Fix guide
- DLV-244Lead PII leaked to analytics or ad pixelsFix guide