|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Is there a way to fool the browser to make a CGI script act like a directory? For example:
http://myserver.com/cgi-bin/my_cgi_script/somefile my_cgi_script = the CGI script somefile = the requested file I want to use this for protection, so that my_cgi_script checks if the remote user is allowed to open somefile. If i could fool the webbrowser to make it look like a folder then it would be much easier. (How) Can this be done? Thanks in advance, d0g1e |
|
#2
|
|||
|
|||
|
Why would you need to "fool" the web browser? It doesn't know what it's requesting. /blah.cgi?/directory/file.html is no different to the browser than /blah/directory or http://www.blah.com
All the browser does is send what is requested to the server and print out what the server sends back. It could care less what's a directory and what's not. |
|
#3
|
|||
|
|||
|
revised
This is what i mean.
------- HTML Code ------- <A HREF="bar.html"> <IMG SRC="foo.gif" ALT="bar" WIDTH="100" HEIGHT="100" BORDER="0"> </A> ------- End HTML ------- if this was the ouput of http://foo.bar/cgi-bin/foo.cgi the webbrowser would try to retrieve http://foo.bar/cgi-bin/foo.gif now, if i could access it like this http://foo.bar/cgi-bin/foo.cgi/index.html the browser would try to retrieve http://foo.bar/cgi-bin/foo.cgi/foo.gif the script would check if the client is allowed to load foo.gif. I would like to know if this is possible. d0g1e |
|
#4
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
|
Quote:
«
Previous Thread
|
Next Thread
»
|
|
|