> I have used this before... it is only part of our overall 
> security structure but you would place this at the top of 
> your action page. If the referrer is not from your domain 
> they are bounced out to whatever location you desire.
> 
> <cfif findnocase("www.yoursite.com",cgi.http_referer) is 0>
>    <cflocation url="http://www.fbi.gov";>
> </cfif>

Unfortunately, this doesn't prevent anyone from intentionally posting data
from wherever they want. It's trivial to build an HTTP POST request and
specify whatever Referer header you like. I typically demonstrate this with
a netcat or telnet client in the Fig Leaf security class, "Securing
ColdFusion Servers on Windows". The only thing it would protect you from is
unintentional form posts from undesired locations, which, of course, isn't
really a problem, I don't think.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to