admin管理员组文章数量:1023827
I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript is plainly visible as anyone can just "Inspect Element" and see the key.
How can I hide that part of the javascript, the key part, from people just using "Inspect Element"?
<script type="text/javascript">
$('document').ready(function(){
$('div.featuredGame').embedly({
maxWidth: 200,
maxHeight: 140,
key: 'KEY REMOVED'
});
});
</script>
I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript is plainly visible as anyone can just "Inspect Element" and see the key.
How can I hide that part of the javascript, the key part, from people just using "Inspect Element"?
<script type="text/javascript">
$('document').ready(function(){
$('div.featuredGame').embedly({
maxWidth: 200,
maxHeight: 140,
key: 'KEY REMOVED'
});
});
</script>
Share
Improve this question
asked Jul 22, 2011 at 14:51
tnwtnw
13.9k15 gold badges71 silver badges114 bronze badges
0
2 Answers
Reset to default 5you could try and obfuscate it? Here's a js obfuscator you could use.
Its not 100% secure, but it at least hides your key, unless someone REALLY wanted to decode it.
Embedly now added a securing keys section in response to this problem. https://blog.embed.ly/securing-keys-f8aca8e6d180
I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript is plainly visible as anyone can just "Inspect Element" and see the key.
How can I hide that part of the javascript, the key part, from people just using "Inspect Element"?
<script type="text/javascript">
$('document').ready(function(){
$('div.featuredGame').embedly({
maxWidth: 200,
maxHeight: 140,
key: 'KEY REMOVED'
});
});
</script>
I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript is plainly visible as anyone can just "Inspect Element" and see the key.
How can I hide that part of the javascript, the key part, from people just using "Inspect Element"?
<script type="text/javascript">
$('document').ready(function(){
$('div.featuredGame').embedly({
maxWidth: 200,
maxHeight: 140,
key: 'KEY REMOVED'
});
});
</script>
Share
Improve this question
asked Jul 22, 2011 at 14:51
tnwtnw
13.9k15 gold badges71 silver badges114 bronze badges
0
2 Answers
Reset to default 5you could try and obfuscate it? Here's a js obfuscator you could use.
Its not 100% secure, but it at least hides your key, unless someone REALLY wanted to decode it.
Embedly now added a securing keys section in response to this problem. https://blog.embed.ly/securing-keys-f8aca8e6d180
本文标签: embedHow to hide embedly javascript keyStack Overflow
版权声明:本文标题:embed - How to hide embedly javascript key? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745591062a2157888.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论