Skip to content

Instantly share code, notes, and snippets.

@mayurah
Created November 20, 2015 17:21
Show Gist options
  • Save mayurah/027ae93444e58578f91e to your computer and use it in GitHub Desktop.
Save mayurah/027ae93444e58578f91e to your computer and use it in GitHub Desktop.
cpanel-whm-mass-ip-change
/* Change cPanel/WHM Mass IP via Chrome Developer Console */
var script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script);
$.fn.jquery;
$("select[name^='customip']").each(function() {
/*console.log( this.value + this.name );*/
/* $(this).find('option:selected').text(); */
/* console.log($(this).children('option:selected').text()); */
$(this).children('option:selected').val("x.x.x.x");
});
PS: replace x.x.x.x with <new-ip>
Common Errors#
Setting up for ip change..... Done
Sorry, x.x.x.x is in use by another domain name and is not a shared ip.
Changing ip for example.com (example) to x.x.x.x
allyourcheats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment