kmar Posted March 6, 2012 Share Posted March 6, 2012 Hi, My domain reseller doesn't offer ID Protection out of the box. I was wondering if it'd be possible to trigger an action hook upon ticking the ID protection box. This way I could create an API request to my registrar and change the contact details of the specified domain to my company’s contact details rather than to my customer's. Does anyone know how this could be achieved? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted March 6, 2012 Share Posted March 6, 2012 Theres no hook for it, but you could setup a cron job hook to check domains for the idprotection option, and then update the whois information using your registrars API. 0 Quote Link to comment Share on other sites More sharing options...
kmar Posted March 6, 2012 Author Share Posted March 6, 2012 Thanks for the reply laszlof, that's actually quite a good idea. Only problem, though, is that I don't really know how to create a file that loops through the domains and checks whether of not idprotection is enabled. I suppose it should be done with WHMCS's API but I've searched the WHMCS website and couldnt find anything to help me get started with a function that cycles through the domains. I know it might be a bit much to ask, but is there anyone who can help me get started on this? Thanks a bunch! 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted March 6, 2012 Share Posted March 6, 2012 <?php function check_idprotect() { $d = select_query('tbldomains', 'domain', array('idprotection'=>1)); while ($result = mysql_fetch_assoc($d)) { $domain = $result['domain']; // Do some API commands here with $domain } } add_hook('DailyCronJob', 999, 'check_idprotect'); ?> Something like this would probably work. However, you'd need to find a way to track domains you've already modified the idprotection on, so you're not updating the data on them when they already have been updated. 0 Quote Link to comment Share on other sites More sharing options...
tripler Posted March 7, 2012 Share Posted March 7, 2012 You also may want to consider the option of having to manual register domains if the option to proxy is chosen. Some of the purpose is defeated if off the bat their information is public and then updated those records are searchable. Yell at your registrar for not offering id protect up front, big money maker for them. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted March 7, 2012 Share Posted March 7, 2012 This way I could create an API request to my registrar and change the contact details of the specified domain to my company’s contact details rather than to my customer's. This would (likely) be a breach of your registrars policies, and even if not, is definitely a breach of their registry agreements. Get your registrar to offer the service, or change registrar to one who does. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.