javascript, html 文档.write

发布于 2024-09-11 14:39:06 字数 369 浏览 2 评论 0原文

我正在尝试使用 document.write 编写 JavaScript,但由于某些原因它不起作用。我还需要使用一种技巧来通过自动机器人“混淆”url 和“src”属性。知道为什么吗?

<script type="text/javascript">
document.write("<scr\" + \"ipt type=\"text\/jav\" + \"ascript\"  s\" + \"rc=\"http:\/\/www.a\" + \"utotraderuae.net\/mem\" + \"bers.j\" + \"s\"><\/sc\" + \"ript>");

预先感谢您的任何回复。

I'm trying to write a javascript using document.write but for some reasons it doesn't work . I also need to make a kind of trick to 'obfuscate' the url and "src" attribute by automated bots .Any idea why ?

<script type="text/javascript">
document.write("<scr\" + \"ipt type=\"text\/jav\" + \"ascript\"  s\" + \"rc=\"http:\/\/www.a\" + \"utotraderuae.net\/mem\" + \"bers.j\" + \"s\"><\/sc\" + \"ript>");

thanks in advance for any response.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一紙繁鸢 2024-09-18 14:39:06

它对我来说效果很好,我只是在末尾添加了结束脚本标签。

<script type="text/javascript">
document.write("<script type=\"text\/javascript\" src=\"http:\/\/www.autotraderuae.net\/members.js\"><\/script>");
</script>

It works fine with me, I just added the closing script tag at the end.

<script type="text/javascript">
document.write("<script type=\"text\/javascript\" src=\"http:\/\/www.autotraderuae.net\/members.js\"><\/script>");
</script>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文