Contoh kode javascript untuk membuat tautan atribusi.
<script type="text/javascript">
//<![CDATA[
$(document).ready(function()
{
if($("#mycredit").attr("href")!="http://CORRECT_CREDIT_URL/")
{
window.location.href="http://REDIRECTION_URL/";
}
});
//]]>
</script>
//<![CDATA[
$(document).ready(function()
{
if($("#mycredit").attr("href")!="http://CORRECT_CREDIT_URL/")
{
window.location.href="http://REDIRECTION_URL/";
}
});
//]]>
</script>
Contoh tag HTML tautan atribusi.
<div id='#credit'>Desainer: <a href=' http://YOUR_DOMAIN/' id='#credit'>YOUR_TITLE</a>.
Contoh kode javascript obfuskasi untuk membuat tautan atribusi.
<script type="text/javascript">var _0x9453=["\x68\x72\x65\x66","\x61\x74\x74\x72","\x23\x6D\x79\x63\x72\x65\x64\x69\x74","\x68\x74\x74\x70\x3A\x2F\x2F\x43\x4F\x52\x52\x45\x43\x54\x5F\x43\x52\x45\x44\x49\x54\x5F\x55\x52\x4C\x2F","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x68\x74\x74\x70\x3A\x2F\x2F\x52\x45\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x55\x52\x4C\x2F","\x72\x65\x61\x64\x79"];$(document)[_0x9453[6]](function(){if($(_0x9453[2])[_0x9453[1]](_0x9453[0])!=_0x9453[3]){window[_0x9453[4]][_0x9453[0]]=_0x9453[5]}});</script>
Dengan mengaplikasikan kode javascript obfuskasi diharapkan dapat mencegah penghapusan tautan atribusi.