hans100
08-12-2006, 12:10 AM
VIPSTEPHAN..Made a new thread due to this been a new subject! I did state i am on a windows server using ASP but you say i can go ahead with the .htaccess...so...
this .htaccess file is s bit of a mystery to me but nonetheless am I correct that I save a blank txt page .htaccess and then post this to my root folder?
They talk of cgi, bin, php, apache, unix and more and everything else but asp or pdf and zip files that I am dealing with.
Ok, so what I gathered is that I simply save a blank txt file as .htaccess and then just by inserting "deny from all' in that .htaccess file NOBODY can be allowed access! just like that...hmmmm!
Thats what I see as the method but its actually plain english without any encodings etc and so just does not sound right?
But anyway...further...In that root folder i would have 5 directories storing pdf documents .
Must i create .htpasswd file also in the root folder with the encrypted un:pw referring the url of each directory. Why the encryption ?
Surely if one sets a password its a secret.... then its a secret!
Now, ensure the .htpasswd file defined in the SOMEDIR_OUTSIDE_ROOT has the following contents SO I assume then that within each of the directories I must simply paste the un:pw as well as in the htpasswd file located in the root where the entire addresses are stated...http://username:password@www.website.com/directory/
I assume when allowing access to only one file within that directory the address would then be http://username:password@www.website.com/directory/yourpdfile.zip
Is that it?
Well ive tried in most ways possible..re-read those tutorials and its just as good as if those files arnt there ..no effect whatsoever!
Any obvious exclusions?
Anbody else got a suggestion to hide away the actual location of a file when aURL of that file s linked for the download path?
this .htaccess file is s bit of a mystery to me but nonetheless am I correct that I save a blank txt page .htaccess and then post this to my root folder?
They talk of cgi, bin, php, apache, unix and more and everything else but asp or pdf and zip files that I am dealing with.
Ok, so what I gathered is that I simply save a blank txt file as .htaccess and then just by inserting "deny from all' in that .htaccess file NOBODY can be allowed access! just like that...hmmmm!
Thats what I see as the method but its actually plain english without any encodings etc and so just does not sound right?
But anyway...further...In that root folder i would have 5 directories storing pdf documents .
Must i create .htpasswd file also in the root folder with the encrypted un:pw referring the url of each directory. Why the encryption ?
Surely if one sets a password its a secret.... then its a secret!
Now, ensure the .htpasswd file defined in the SOMEDIR_OUTSIDE_ROOT has the following contents SO I assume then that within each of the directories I must simply paste the un:pw as well as in the htpasswd file located in the root where the entire addresses are stated...http://username:password@www.website.com/directory/
I assume when allowing access to only one file within that directory the address would then be http://username:password@www.website.com/directory/yourpdfile.zip
Is that it?
Well ive tried in most ways possible..re-read those tutorials and its just as good as if those files arnt there ..no effect whatsoever!
Any obvious exclusions?
Anbody else got a suggestion to hide away the actual location of a file when aURL of that file s linked for the download path?