Hi Tom --


> What about protecting the /farcry directory?

Huh? "/farcry" is just a mapping. One in CFMX and one on the webserver.


I want to prevent people from trying to get a login screen for FarCry.

So, the answer is:

In your application/customadmin/login, make a new login.cfm

I then put in there:

<cfset remoteAddr="#cgi.remote_addr#">
<cfset allowedIP="<target IP Address>">

<cfset quad1=ListFirst(remoteAddr,".")>
<cfset quad2=ListGetAt(remoteAddr,2,".")>
<cfset quad3=ListGetAt(remoteAddr,3,".")>

<cfset remoteAddr = quad1 & "." & quad2 & "." & quad3>

<cfif Compare(remoteAddr,allowedIP) eq 0>
        <cfimport taglib="/farcry/farcry_core/tags/navajo" prefix="nj">
        <nj:Login>
<cfelse>
        <cflocation url="index.cfm">
</cfif>

At least it stops people not in my IP address range from getting a login prompt, which is one less thing to worry about.

_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up � now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/



--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to