Romanized Bangla: var restricted_link = ; $(‘a’).each(function() { $(this).attr(“href”, function(index, old) { var baseurlarray = old.split( ‘/’ ); host = baseurlarray; if(jQuery.inArray(host, restricted_link) == -1) { var base64 = window.btoa(old); return old.replace(old, “”+base64); } }); });