Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Triple Slash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Triple Slash
Authored by: J0l on Jul 30, '02 03:43:28PM

.... Triple slash will go to the root file in the webserver, as the first 2 are seen as normal, the third as the root file (usually index.html, though it could be index.php, index.htm etc etc how ever you setup httpd.conf).

Useless? No not at all actually extremely useful. Say if you want to use a normal home page graphic (a logo that always goes home), instead of using absolute URL's (bad idea for portablilty) use something like this <a href="/"><img scr="somegraphic"></a> then no matter how much you nest pages in different directories instead of using .../../etc, the link to the homepage of the site. So basically an absolute path to the root file.

Also it has another more spoofing function. It goes to the users loopback address. Meaning if I'm running Apache and say there is a link on Macosxhints.com which has three slashes then my browser will connect to my machine and no this website. I only discovered this when I clicked on a link and it went to my custom index page and the associate next to me running Wintel and IIS did the same thing.



[ Reply to This | # ]