var host = location.host || location.hostname;
if ( host.indexOf( 'datatables.net' ) === -1 && host.indexOf( 'datatables.local' ) === -1 ) {
throw 'DataTables Editor - remote hosting of code not allowed. Please see '+
'http://editor.datatables.net for details on how to purchase an Editor license';
}