Kyle Singer wrote:


We have areas of our legacy site that are open only to those on campus (with a 10.x.x.x IP address). I'd like to mirror this in our FarCry site.

Well, maybe this can be useful. I've used this custom tag (DP_ValidateIP) on and off over the past few years. Its free to use and not encrypted. It allows wilcards (10.*.*.*), ip ranges, groups, etc.


What I've done in the past is make a feature in my CMSs to allow admins to enter IPs and IP ranges (This way I don't have to change code when they add or change IPs, rather they make the changes to the DB. Then in my IP validation page I loop over the query result and see if the guest user's IP validates via one of the masks).

Here's a snipet from the site:
1. Simple validation to determine if an abitrary value is an IP address.
2. Complex mask/wildcard based validation. This can be used, for example, to test if a particular IP is within a certain range or group. Multiple masks may be used to create complex validations.



And here's the location to get the tag. If a custom tag isn't the way to go maybe you can at least get some ideas from the code.


Who knows, maybe something like this could be a good addition to Farcry (In the Admin section or something).
http://www.depressedpress.com/depressedpress/Content/Development/ColdFusion/Extensions/DP_ValidateIP/Index.cfm



-Jeff

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to