I also have a solution (actually got it from my boss, thanks boss), it might not work for you (because it doesn't use .htaccess and mod_rewrite, and this one uses PHP), but I hope you like the idea. This also uses IPv4 functions so you might need another function for IPv6.
1.) Get a DynamicDNS account and bind a dynamic subdomain to it (something like dyndns.yourdomain.com) 2.) Download a DynDNS client using the details associated with your account, running it in the background so your subdomain's IP updates automatically 3.) On your app, write some configuration entries / logic checks for allowed specific domains like so: a.) Get the list of allowed domains from your storage b.) Loop through each domain (where your dyndns.yourdomain.com is also included), getting the IP address using gethostbyname() 3.) Check if the visitor's $_SERVER['REMOTE_ADDR'] matches one of these IPs, if not, then you can redirect them somewhere. HTH, OJ Tibi Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
