Hi yes, I am trying to add a code that hides the links of the source code with base64, what I achieved, but nothing else on a php page, directly in a binary code you can not use html code with php.
An extension that I add a BBcode with these features would be excellent to avoid theft of links, this is a problem with people who like content paste content from other people.
I leave an example of a button.
base64.php
Code: Select all
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/base64/camuflalinks.js"></script>
<?php
function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}
function base64url_decode($data) {
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
}
php?>
<span class="camuflaEnlace" atributo="<?=base64url_encode("{URL}");?>">
<input method="get" type ="submit" value="Link" />
</span>