Opa,
I need to hide the src code of the iframe in html, I tried to alter it as follows
$('#iframe').attr('src', 'http://www.site.com/');
Unsuccessful, how can I hide or obscure the iframe's src?
Vlw
Opa,
I need to hide the src code of the iframe in html, I tried to alter it as follows
$('#iframe').attr('src', 'http://www.site.com/');
Unsuccessful, how can I hide or obscure the iframe's src?
Vlw
The answer is to obfuscate (hinder) the src code of the iframe in html, since it is impossible to hide.
<script src="http://code.jquery.com/jquery-1.8.3.min.js"type="text/javascript"></script>
<script src="a.js"></script>
<iframe src="javascript:;" id="myframe"></iframe>
JS File (a.js)
First copy the code below paste into your text editor and replace the URL.
$('#myframe').attr('src', 'http://dominio.com');
Go to javascript obfuscator and paste the code so that it is "obfuscated." Do not forget to clear the field before pasting the code there.
Once this is done, you should return something like:
var _0x5a5d=["\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x6B\x69\x74\x68\x6F\x6D\x65\x70\x61\x67\x65\x2E\x63\x6F\x6D","\x61\x74\x74\x72","\x23\x6D\x79\x66\x72\x61\x6D\x65"];$(_0x5a5d[3])[_0x5a5d[2]](_0x5a5d[0],_0x5a5d[1])
Finally, compose your a.js as follows:
$(document).ready(function() {
var _0x5a5d=["\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x6B\x69\x74\x68\x6F\x6D\x65\x70\x61\x67\x65\x2E\x63\x6F\x6D","\x61\x74\x74\x72","\x23\x6D\x79\x66\x72\x61\x6D\x65"];$(_0x5a5d[3])[_0x5a5d[2]](_0x5a5d[0],_0x5a5d[1])
});