Is it legal to view a site&#39;s directories/files/bare index that contain sensitive information?
<p>I've been getting into cyber security and learned there are certain sites that have their directory browsing enabled, like a URL that contains the files/folders of a site that contain content, which means you can go back a few directories and possibly see stuff like photos of content that you would have had to pay for browsing the site normally or even sensitive information like photos of user's ID's.</p>
<p>Is it even legal to view those files (U.S), since anyone with a browser and the right URL can access them?</p>

<p>If the operators of a site post them in such a way that anyone with a browser can access them, with no login or other security precaution required, and not even any notice that the files are confidential, they are implicitly inviting anyone to view them, and thus it is legal to do so.</p>
<p>There was a case where a site owner gave specific notice to a user not to access the site, and blocked the user's IP. When the user hired a proxy service to get around the blockage, this was held to be unauthorized access, a crime under the CFAA (Computer Fraud and Abuse act). But in that case the individual notice was considered essential to the applicability of the act.</p>
<p>That case was <a href="https://law.justia.com/cases/federal/district-courts/california/candce/3:2012cv03816/257395/280/" rel="nofollow noreferrer"><em>Craigslist, Inc v. 3Taps, Inc et al</em>, 942 F.Supp.2d 962  (N.D. Cal. 2015)</a>. See also <a href="https://en.wikipedia.org/wiki/Craigslist_Inc._v._3Taps_Inc." rel="nofollow noreferrer">This Wikipedia article</a> and <a href="https://jaxenter.com/data-scraping-cases-165385.html" rel="nofollow noreferrer">thisJaxEnter article</a>. As the Wikipedia article put it:</p>
<blockquote>
<p>Craigslist Inc. v. 3Taps Inc., 942 F.Supp.2d 962 (N.D. Cal. 2013) was a Northern District of California Court case in which the court held that sending a cease-and-desist letter and enacting an IP address block is sufficient notice of online trespassing, which a plaintiff can use to claim a violation of the Computer Fraud and Abuse Act.</p>
</blockquote>
<p>Note that in this case web scraping was apparently impacting the craigslist site.</p>

internet privacy