[solved] Private page is visible when the URL is pasted into browser
Posted: Wed May 14, 2008 4:16 pm
I had what I thought was a properly designed login to a private page which contained a link to a file. It has come to my attention that Google has indexed the page and file that was supposed to be private.
So I Googled the page in question and sure enough there it was. I clicked on the link and was taken directly to the page that supposedly needs a login before the information is visible.
So obviously my coding is incorrect, or there is a security issue somewhere beyond my comprehension.
My login page is coded like this...
If I put the URL into the browser that Google has indexed, it takes me to the Login page, but the page also displays the link to the file that was supposed to be protected by virtue of it being on a private page.
What have I done wrong?
As an added note, I have also placed a "Disallow: /file/" directive in the robots.txt file to hopefully get rid of Bots indexing that directory in the future. What else should I do to ensure the protection of people or bots gaining access to this file which should be protected?
So I Googled the page in question and sure enough there it was. I clicked on the link and was taken directly to the page that supposedly needs a login before the information is visible.
So obviously my coding is incorrect, or there is a security issue somewhere beyond my comprehension.
My login page is coded like this...
Code: Select all
{if $ccuser-'LoggedIn()'} Welcome {$customcontent_loginname}
<p>Download TheFile <a href="http://my domain/uploads/file/TheFile.doc">here</a>.</p>
{FrontEndUsers} {else} You are not authorized to view this data {/if}What have I done wrong?
As an added note, I have also placed a "Disallow: /file/" directive in the robots.txt file to hopefully get rid of Bots indexing that directory in the future. What else should I do to ensure the protection of people or bots gaining access to this file which should be protected?