SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: file:///

  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    file:///

    I just learned something really cool (and scary)...

    So I had saved some article on my hard-drive, and at the top of a the page was a hyperlink to whatever website it came from.

    When I clicked on the hyperlink, it took me to this path in FireFox...
    Code:
    file:///
    ...which in turn displays all directories on my MacBook at the Root Level.


    That's crazy?!


    Should I be scared or anything?!

    Sincerely,


    Debbie

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by DoubleDee View Post
    I just learned something really cool (and scary)...

    So I had saved some article on my hard-drive, and at the top of a the page was a hyperlink to whatever website it came from.

    When I clicked on the hyperlink, it took me to this path in FireFox...
    Code:
    file:///
    ...which in turn displays all directories on my MacBook at the Root Level.


    That's crazy?!


    Should I be scared or anything?!

    Sincerely,


    Debbie
    The file URI scheme has been around for a while (cerca 1997). You can browse the local file structure of your drive through your browser.

    http://en.wikipedia.org/wiki/File_URI_scheme

    Your files are only available as read-only and only locally. I have yet to hear of the file URI scheme being the source of a security issue.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Force Flow View Post
    The file URI scheme has been around for a while (cerca 1997). You can browse the local file structure of your drive through your browser.

    http://en.wikipedia.org/wiki/File_URI_scheme

    Your files are only available as read-only and only locally. I have yet to hear of the file URI scheme being the source of a security issue.
    Thanks for the link.

    Is there any practical application for what I stumbled across last night?

    Do you personally ever do anything with this?

    Sincerely,


    Debbie

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by DoubleDee View Post
    Is there any practical application for what I stumbled across last night?
    Opening local files that need a browser to open, such as html files.

    Sometimes, CDs are distributed that have instructions or documentation that are a collection of static html pages, rather than a PDF or plain text file.

    Do you personally ever do anything with this?
    When I'm working on a new web site design, I tend to work with just local files until I'm ready to turn it into an actual template for whatever platform that it's intended for. For that, you need a browser that will open local files.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,169
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    I use it quite often. For "simple" testing of pages that are only HTML/CSS/javascript and don't need a localhost server (eg. PHP pages) it's often easier to just have the browser open the file.

  6. #6
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Interesting...

    Okay, thanks!


    Debbie


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •