Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the meaning of "/../" - parent directory standard in URLs?

Tags:

url

In many filesystems ".." corresponds to parent directory. How is it with URLs? I saw some examples behaving according to this scheme, but is this a standard (RFC)?

like image 834
Gabriel Ščerbák Avatar asked Apr 05 '11 14:04

Gabriel Ščerbák


People also ask

What does parent directory mean?

With a directory, a parent directory is a directory containing the current directory. For example, in the MS-DOS path below, the "Windows" directory is the parent directory of the "System32" directory, and C:\ is the root directory.

What is the symbol for parent directory?

.. (double-dot) is the parent of your current directory. ~ (tilde) is your home directory. / (slash) if it present at first character, it usually is called root directory.

What is current directory and parent directory?

In the MS-DOS or Windows command line, the current working directory is displayed as the prompt. For example, if the prompt was "C:\Windows\System32>" the "System32" directory is the current directory, "Windows" is the parent directory, and "C:\" is the drive (root directory).


1 Answers

Exactly the same.

http://www.mysite.com/dir1/dir2/dir3/index.html

a link to "../../me.jpg" should give you http://www.mysite.com/dir1/me.jpg

The cod red virus that went round a good number of years back attacked IIS sites because c:\inetpub.. was the document root and if you did a url such as /../../../../windows/cmd.exe%20dir it would execute it!

like image 69
BugFinder Avatar answered Oct 13 '22 01:10

BugFinder