【问题标题】:Website spam hidden in banner隐藏在横幅中的网站垃圾邮件
【发布时间】:2015-02-15 16:07:34
【问题描述】:

我们有这个网站:AIESEC如果你转到页面底部你会看到一种不时变化的幻灯片:

我发现,当您将鼠标放在该横幅上时,它会显示一系列垃圾邮件页面。所以我决定看一下 a 代码并想象它是一个包含一组图像的 div,然后它们有一个 href 标签等等......但我惊讶的是,对于那个横幅,我发现了以下垃圾邮件代码:

<div style="position:absolute;filter:alpha(opacity=0);opacity:0.001;z-index:10;"> <a href="http://www.segwayofhershey.com/"><b>uggs black friday</b></a> <a href="http://www.mafrancegourmet.com/"><b>north face cyber monday</b></a> <a href="http://www.wastefwd.com/"><b>lululemon black friday</b></a> <a href="http://merkleinsurance.com/"><b>michael kors black Friday</b></a> <a href="http://www.greentreepartners.com/"><b>uggs black friday</b></a> <a href="http://www.greenfieldfirstbaptist.com/"><b>uggs cyber monday</b></a> <a href="http://www.wilmingtonbands.org/"><b>Longchamp black friday</b></a> <a href="http://www.casinoparties.com/"><b>louis vuitton cyber Monday</b></a> <a href="http://www.brookwoodtownhouses.com/"><b>north face black friday sale</b></a> <a href="http://www.spanish411.net/"><b>uggs cyber monday</b></a> <a href="http://www.southalabamafilmfestival.org/"><b>michael kors cyber Monday</b></a> <a href="http://www.ryanmoving.com/"><b>polo black friday</b></a> <a href="http://www.tri-state-k9.org/"><b>kate spade black friday</b></a> <a href="http://pdcpubliclibrary.org/"><b>Miumiu black Friday</b></a> <a href="http://www.iztechnologies.com/"><b>michael kors black Friday</b></a> <a href="http://www.hauswiesner.com/"><b>abercrombie and fitch black Friday</b></a> <a href="http://www.vietventures.com/"><b>black Friday beats by dre</b></a> <a href="http://www.waltspetro.com/"><b>under armour black friday</b></a> <a href="http://www.artisanvoice.com/"><b>the north face cyber monday</b></a> <a href="http://www.exterapartners.com/"><b>north face cyber monday</b></a> <a href="http://www.ahrunsfamousinc.com/"><b>nike black friday</b></a> <a href="http://www.wilmheadstart.org/"><b>canada goose cyber monday</b></a> <a href="http://www.pic-nicc.org/"><b>uggs black friday</b></a> <a href="http://www.raneytruss.com/"><b>beats by dre cyber Monday</b></a> <a href="http://www.nhaccounting.net/"><b>uggs black friday</b></a> <a href="http://jennchase.com/"><b>north face black friday</b></a> <a href="http://prescottrepairs.com"><b>uggs black friday</b></a> <a href="http://www.virtualarmory.com/"><b>chanel cyber monday</b></a> <a href="http://www.warfieldpointpark.com/"><b>beats by dre cyber Monday</b></a> <a href="http://elkhartmunicipalband.com/"><b>north face black friday</b></a> <a href="http://www.mscasati.com/"><b>tod's black friday</b></a> <a href="http://www.vietventures.com/"><b>beats by dre cyber Monday</b></a> <a href="http://www.ahavastorah.info/"><b>north face cyber monday</b></a> <a href="http://www.walaser.com/"><b>lululemon cyber monday</b></a> <a href="http://www.ranchwise.com/"><b>kate spade cyber monday</b></a> <a href="http://www.janeadenymemorialschool.com/"><b>michael kors cyber Monday</b></a> <a href="http://www.newenergyfarms.com/"><b>christian louboutin black friday</b></a> <a href="http://www.sagamusic.com"><b>uggs black friday</b></a> <a href="http://www.mashinsky.com/"><b>north face black friday</b></a> <a href="http://www.intersoftconcepts.com/"><b>true religion cyber monday</b></a></div></body>

因此,如果您看一下,它没有任何意义,因为它不包含任何图像,只是指向完全是垃圾邮件的外部页面的链接。

我已经删除了 div 标签内的所有内容,就像这样:

 <div style="position:absolute;filter:alpha(opacity=0);opacity:0.001;z-index:10;"> </div></body>

但随后横幅消失了。

一些用户告诉我,每当他们访问我们的网站时,他们都会从该网页收到防病毒警报。

你认为发生了什么? 有什么建议吗?

提前致谢

【问题讨论】:

  • 网站被黑是什么意思?
  • 你真的想要下面的横幅(显然没有链接)?它只是偷看的背景,div的高度由链接的数量决定。例如,如果您留下一个链接,那么差距将是 1 行高。
  • 是的。我们只希望图像组发生变化。我们确实不想要垃圾邮件!

标签: html spam


【解决方案1】:

该空间当前是由不可见的链接本身将 div 向下推 196 像素创建的。这只是在容器下方创建空白区域,以便可以看到背景图像。

在没有垃圾邮件 div 的情况下保持相同的外观

  • 彻底删除垃圾 div

  • 您可以通过在现有的.container div 上放置适当的底部边距来保持间距(margin-bottom: 196px 以保持相同的间距)。

    .container { 
        margin-bottom: 192px; 
    }
    

【讨论】:

  • 谢谢。要测试这个。我将不得不创建一个容器,对吗?我没有任何只是这个垃圾邮件的 div
  • 已经有一个带有 container 类的包装 div,您可以对其应用边距,如下所示:&lt;div class="container"&gt; &lt;header class="row"&gt; &lt;!-- Navigation Bar --&gt;
  • 所以你的意思是这样的:
    ?
  • 您可以访问 CSS 吗?如果你这样做了,那么你可以在它的底部添加.container { margin-bottom: 192px; }。如果你不这样做,那么你可以像这样放置 CSS 内联:&lt;div class="container" style="margin-bottom: 196px"&gt;
  • 已经做到了。然后我将不得不使用像素,因为这个边距太多了。谢谢!
【解决方案2】:

尝试删除垃圾链接并为 div 指定高度。也删除position:absolute

&lt;div style="opacity: 0.001; z-index: 10; height: 250px;"&gt; &lt;/div&gt;

【讨论】:

  • 很高兴它有帮助。如果您接受答案,那就太好了。
猜你喜欢
相关资源
最近更新 更多
热门标签