Forum Moderators: phranque
I find the easiest way to access these files is by uploading them on my server. But, I know this offers me little protection, as I do not have access to a place on my server that is not automatically made publicly available.
Is there an easy way to create a secure folder online that is not accessible from the http protocol, but only when I ftp into my site to download the files?
I'm trying not to deal with any more passwords then what I need to log into ftp.
Either mod_access or mod_rewrite can be used to deny any access to a subdirectory via HTTP.
If desired, you could create exceptions to allow HTTP access from specific IP addresess, hostnames, or using a password.
Since .htaccess does not affect access via the FTP protocol, no change would occur in the 'FTP view' of your server.
See Apache mod_access, and the [F] flag of RewriteRule in Apache mod_rewrite.
Jim
If you use Fire-Fox's user-agent switcher, you can set a custom user-agent and only allow access to the directory you are protecting to that user-agent.
(It's like password protecting, only different --- because you can set the user-agent allowed to be the same for all sites/directories, and switch once to have access to all directories.)
It looks something like this:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^my_custom_string-1234$
RewriteRule ^theprotected/directory/ - [F]
Just another idea.
Justin