Curently when someone uploads an attachment with a form it goes into the uploads folder and is browseable if someone knew the filename. While I know this is unlikely, is there a way to make file uploads more secure for peace of mind?
Thanks!
Curently when someone uploads an attachment with a form it goes into the uploads folder and is browseable if someone knew the filename. While I know this is unlikely, is there a way to make file uploads more secure for peace of mind?
Thanks!
I would also like to know if there is any way to restrict attachment file downloading to administrators and editors only.
There is not currently a way to restrict attachment file downloading. However, the links to these can only be accessed via the entry detail. The URL's to the files are unlikely to be guessed due to the file folder structure. In the future we would like to add more security, however that will require .htaccess modifications in order to implement.
Good to know that you have plans for it.
Some kind of download manager would allow direct access to be denied with htaccess. Now I just made it little more difficult to access uploaded files by checking login cookie if trying to load them.
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
RewriteRule ^(.*)files/gravity_forms(.*)$ http://my.site/ [NC,R,L]