Yes that's possible to do.

Probably the best way to do this is with your web server, on Apache with a
module such as mod_rewrite, or in IIS with an ISAPI filter. I have written
an ISAPI filter for search engine safe url conversion would convert to:

http://www.somedomain.com/dir/foo.cfm/uID/12345

You can download filter and the source code here
http://www.cfdev.com/products/ (Spider Safe URL) and them modify it to suit
your needs.

Another option might be to set a custom 404 page in CF administrator, and
then use that to route requests to the appropriate CF template.

Also if your worried about people removing the uID, why not just add at the
top of your page:

<cfif NOT IsDefined("url.uID") OR NOT Len(url.uID)>
        Hey you didn't give me a uid.
        <cfabort>
</cfif>

then use <cfparam> or <cfqueryparam> to ensure that they are passing an
integer.

_____________________________________________
Pete Freitag
CTO, CFDEV.COM
http://www.cfdev.com/

-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 3:11 PM
To: CF-Talk
Subject: URL Strings


Hi All,

Don't even know if this is possible, but is there a way to take the
following string:

http://www.somedomain.com/dir/foo.cfm?uID=12345

And make it look like:

Http://www.somedomain.com/dir/mylink.cfm

I want to be able to hide the real URL string, so someone can't alter it.
But I need to UID passed someway so that it can be used in a db query.
Using encrypt/decrypt still doesn't prevent the listing after the ? From
being maliciously removed.

Mark



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to