Jump to content

Domain ID Protect action hook


kmar

Recommended Posts

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!

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

<?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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated