所以,我正在使用此主机,他们将一些代码注入到我的index.php中。我知道剥离标签有效,但是我不确定如何使用它们……如果有人可以向我展示一些示例,或者如果有人比剥离标签有更好的建议,那将很好。
这是他们注入的代码
<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<iframe id="sc1" width="0" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/429476043&color=%23ff5500&auto_play=true&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false&visual=true" style="opacity:0;"></iframe>
<iframe id="sc2" width="0" height="0" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/488896725&color=%23ff5500&auto_play=true&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false&visual=true" style="opacity:0;"></iframe>
<script src="https://w.soundcloud.com/player/api.js" type="text/javascript"></script>
<script type="text/javascript">
(function(){
var widgetIframe1 = document.getElementById('sc1'),
widget1 = SC.Widget(widgetIframe1);
widget1.bind(SC.Widget.Events.READY, function() {
widget1.setVolume(0);
});
}());
(function(){
var widgetIframe2 = document.getElementById('sc2'),
widget2 = SC.Widget(widgetIframe2);
widget2.bind(SC.Widget.Events.READY, function() {
widget2.setVolume(0);
});
}());
</script>
</div></div>
编辑:刚刚意识到他们实际上在我拥有的每个php中注入了代码,而不仅仅是index.php