Tip programming
Monday, September 28, 2015
[iFrame] - Only allow on one domain
The best thing you can do is the following:
if
(
window
.
top
.
location
.
host
!=
"hostname"
)
{
document
.
body
.
innerHTML
=
"Access Denied"
;
}
Add the above to your JavaScript and then use a
JavaSript obfuscator
Newer Post
Older Post
Home