Forum Moderators: coopster & phranque

Message Too Old, No Replies

URL after cgi

how to change protect.cgi?file=datA

         

sophie

5:41 pm on Dec 7, 2001 (gmt 0)

10+ Year Member



hi,

the datA folder used to be under the same folder of cgi. protect.cgi?file=datA/test.html worked well.
cgi-bin/protect.cgi
cgi-bin/datA/test.html

now datA has to be moved to another folder. the directory looks like:

cgi-bin/protect.cgi
htdocs/datA/test.html

how can i change the URL to call this page?

seriesint

6:15 pm on Dec 7, 2001 (gmt 0)



Hi
If I got what you are asking correct, the answer would be to work from the root of the webserver or /data/test.html
as in protect.cgi?file=/data/file.html
this is given that the /htdocs folder is the root of the web server
if its just another folder ?file=/htdocs/data/file.html

although if its a protection scheme for specific files, its pretty weak since just typing in URL/data/file.html should bypass the script
That's just a quick take of the matter though.

HTH