really the best way is to have a server side structure that hold the urls.
Not sure if you can do anything about history though, if the browser has
been there it knows where it has been. Does cfcontent take care of the
history issue.

Other issues with my earlier solution are using browser security options to
be notified about all cookies and hence have a chance to see what's in them.

Just trying to make life easier, back to the drawing board.

----- Original Message -----
From: "Ron Hornbaker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 26, 2003 9:54 PM
Subject: RE: [KCFusion] Hidden URL's


> I'm probably missing something, but won't the user be able to view the URL
> in the browser history? Or are you only trying to hide the URL from users
> who haven't yet clicked on the link, or from search engine robots?
>
> -Ron
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Bryan LaPlante
> > Sent: Sunday, January 26, 2003 6:10 AM
> > To: KCFusion
> > Cc: CFGURU
> > Subject: [KCFusion] Hidden URL's
> >
> >
> > Ok guys/gals,
> > I answered a question in my local user group kcfusion list
> > about hiding urls
> > with a somewhat convoluted explanation of how we were hiding
> > urls from the
> > user using a cfm page included as a <script src="some.cfm">.
> > Well it hit me
> > this morning that there is a much simpler and more secure way
> > to hide a url
> > from the users view. A cookie that is set with no expires date will only
> > exist in memory while the browser is open and the user will not
> > be able to
> > go to the temporary internet file dir and read the cookie.
> >
> > for convenient sake I turned the cookie script into an object so that it
> > could be used by the coder in much more compact way.
> >
> > NOTE: CF creates the name of the cookie in all upper case.
> >
> > STEP 1. copy the script below into the page or external js file.
> > STEP 2. create a cookie with the name associated with the url
> > and the value.
> >
> > <cfcookie name="yahoo" value="http://www.yahoo.com/";>
> > <a href="javascript: cookieToURL('YAHOO')">Yahoo.com</a>
> >
> >
> >  <script>
> >  mycookie = new Cookie();
> >  function cookieToURL(u){
> >   alert(mycookie.get(u));
> >   if(mycookie.get(u) != null){
> >    location.href = mycookie.get(u);
> >   }
> >  }
> >
> >  /* Cookie */
> >
> >  function Cookie(){
> >   var dom = location.host;
> >   var path = location.href;
> >   var proto = location.protocol;
> >   var portlen = ((location.port != "")? location.port.length+1 : 0);
> >   this.defaultDomain =
> > dom.substring(dom.lastIndexOf("/"),dom.length-portlen);
> >   this.defaultPath = path.substring(proto.length + dom.length +
> > 2,path.lastIndexOf("/")+1);
> >  }
> >
> >  Cookie.prototype.getCookieVal = function(offset) {
> >    var endstr = document.cookie.indexOf (";", offset);
> >    if (endstr == -1)
> >      endstr = document.cookie.length;
> >    return unescape(document.cookie.substring(offset, endstr));
> >
> >  }
> >
> >  Cookie.prototype.get = function(name) {
> >    var arg = name + "=";
> >    var alen = arg.length;
> >    var clen = document.cookie.length;
> >    var i = 0;
> >    while (i < clen) {
> >      var j = i + alen;
> >      if (document.cookie.substring(i, j) == arg)
> >        return this.getCookieVal(j);
> >      i = document.cookie.indexOf(" ", i) + 1;
> >      if(i == 0) break;
> >    }
> >    return null;
> >  }
> >
> >  Cookie.prototype.set =
> > function(name,value,expires,path,domain,secure) {
> >    document.cookie = name + "=" + escape(value) +
> >      ((expires) ? "; expires=" + expires.toGMTString() : "") +
> >      ((path) ? "; path=" + path : "; path=" + this.defaultPath) +
> >      ((domain) ? "; domain=" + domain : "; domain=" +
> > this.defaultDomain) +
> >      ((secure) ? "; secure" : "");
> >
> >  }
> >
> >  Cookie.prototype.remove = function(name,path,domain){
> >   if (this.get(name) != null){
> >    document.cookie = name + "=" +
> >      ((path) ? "; path=" + path : "; path=" + this.defaultPath) +
> >      ((domain) ? "; domain=" + domain : "; domain=" +
> > this.defaultDomain) +
> >     "; expires=Thu, 01-Jan-70 00:00:01 GMT";
> >   }
> >  }
> >  </script>
>
>
>
> ______________________________________________________________________
> The KCFusion.org list and website is hosted by Humankind Systems, Inc.
> List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
> Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
> To Subscribe.................... mailto:[EMAIL PROTECTED]
> To Unsubscribe................ mailto:[EMAIL PROTECTED]
>
>

 
 
______________________________________________________________________
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe.................... mailto:[EMAIL PROTECTED]
To Unsubscribe................ mailto:[EMAIL PROTECTED]
 

Reply via email to