最近我收到了很多垃圾邮件,其中包含这样的链接 请勿点击 --http://mgatemizlik.com/galeri/de.php---
我使用 PHP file_get_contents() 并将内容写入文件。
这就是我得到的输出。 (编辑这是来自活跃的垃圾邮件链接)
<html class="featured-panel-style-2" lang="en-US" style="background-image:url('/bin_static/back.jpg');">
<!--
<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="profile" href="http://gmpg.org/xfn/11">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- OptimizePress SEO options -->
<title>$12.365,98 in 26 Days</title>
<!-- OptimizePress SEO options end -->
<!--[if lt IE 9]>
<link rel='stylesheet' id='twentyfourteen-ie-css' href='/media/zbinary/ie.css?ver=20131205' type='text/css'
media='all'/>
<![endif]-->
<link rel="stylesheet" id="optimizepress-page-style-css" href="/media/zbinary/style.min.css" type="text/css" media="all">
<link rel="stylesheet" id="optimizepress-default-css" href="/media/zbinary/default.min.css" type="text/css" media="all">
<script type="text/javascript" src="/media/wap-snapfuck/static/js/jquery.js"></script>
<script type="text/javascript" src="/cookie/js.cookie2.js"></script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css" id="op_header_css">
p, .single-post-content li, #content_area li, .op-popup-button .default-button{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}a, blockquote{font-family:"Source Sans Pro", sans-serif}h1,.main-content h1,.single-post-content h1,.full-width.featured-panel h1,.latest-post .the-title{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}h2,.main-content h2,.single-post-content h2,.op-page-header h2,.featured-panel h2,.featured-posts .post-content h2,.featured-posts .post-content h2 a,.latest-post h2 a{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}h3,.main-content h3,.single-post-content h3{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}h4,.main-content h4,.single-post-content h4,.older-post h4 a{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}h5,.main-content h5,.single-post-content h5{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}h6,.main-content h6,.single-post-content h6{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}.site-title,.site-title a{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}.site-description{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}.banner .site-description{font-style:normal;font-weight:normal;font-size:17px;font-family:"Source Sans Pro", sans-serif;color:#444}
</style>
</head>
<body class="page page-id-394 page-template-default op-live-editor-page op-plugin masthead-fixed full-width singular">
<div class="floating-featured-panel floating-featured-panel-fluid main-content" style="width:600px;background-color:#000000;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #000000), color-stop(100%, #4f4f4f));background:-webkit-linear-gradient(top, #000000 0%, #4f4f4f 100%);background:-moz-linear-gradient(top, #000000 0%, #4f4f4f 100%);background:-ms-linear-gradient(top, #000000 0%, #4f4f4f 100%);background:-o-linear-gradient(top, #000000 0%, #4f4f4f 100%);background:linear-gradient(to bottom, #000000 0%, #4f4f4f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#000000, endColorstr=#4f4f4f, GradientType=0);">
<div id="content_area" class="">
<div class="row one-col cf ui-sortable" id="le_body_row_1" data-style="">
<div class="fixed-width">
<div class="one column cols" id="le_body_row_1_col_1">
<div class="element-container cf" data-style="" id="le_body_row_1_col_1_el_1">
<div class="element">
<div class="op-text-block" style="margin-top:2px;margin-bottom:2px;width:100%;line-height:40px;margin: 0 auto;text-align:center;padding-top:2px;padding-bottom:2px;">
<p style="font-size:42px;color:#ffffff;letter-spacing:-2px;line-height:40px;text-align: center;">
<strong>How I Made
<span style="color: #ff0000;">$12.365,98 in 26 Days</span> Without Spending a Dime
</strong>
</p>
</div>
</div>
</div>
<div class="element-container cf" data-style="" id="le_body_row_1_col_1_el_2">
<div class="element">
<div class="op-text-block" style="margin-top:2px;margin-bottom:2px;width:100%;line-height:40px;margin: 0 auto;text-align:center;padding-top:2px;padding-bottom:2px;">
<p style="font-size:28px;color:#ffffff;letter-spacing:-2px;line-height:40px;text-align: center;">
<span style="color: #ffffff;">
<strong></strong>
</span>
</p>
</div>
</div>
</div>
<div class="element-container cf" data-style="" id="le_body_row_1_col_1_el_3">
<div class="element">
<div class="op-text-block" style="width:100%;margin: 0 auto;text-align:center;padding-top:7px;padding-bottom:2px;">
<p style="color:#ffffff;text-align: center;">This Is A FREE Service. No Credit Card Required.</p>
</div>
</div>
</div>
<div class="element-container cf" data-style="" id="le_body_row_1_col_1_el_4">
<div class="element">
<div class="op-popup cf" data-width="700" data-open-effect="fade" data-close-effect="fade" data-open-speed="normal" data-close-speed="normal" data-border-color="#ffffff" data-border-size="15" data-padding-top="20" data-padding-bottom="20" data-padding-left="30" data-padding-right="30" data-exit-intent="N" data-trigger-time="0" data-trigger-dontshow="0" data-dont-show-on-tablet="N" data-dont-show-on-mobile="N" data-popup-id="op_popup_id_1417400621648">
<div class="op-popup-button ">
<div style="text-align:center">
<style type="text/css">#btn_1_23036882122fc5d2cf3a1bb81c3fcae9 .text {font-size:34px;color:#000000;font-weight:bold;text-shadow:#ff1a00 0px 1px 0px;}#btn_1_23036882122fc5d2cf3a1bb81c3fcae9 .subtext {text-shadow:#ff1a00 0px 1px 0px;}#btn_1_23036882122fc5d2cf3a1bb81c3fcae9 {padding:28px 38px;border-color:#000000;border-width:3px;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;background:#ff1700;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #ff1700), color-stop(100%, #ffef35));background:-webkit-linear-gradient(top, #ff1700 0%, #ffef35 100%);background:-moz-linear-gradient(top, #ff1700 0%, #ffef35 100%);background:-ms-linear-gradient(top, #ff1700 0%, #ffef35 100%);background:-o-linear-gradient(top, #ff1700 0%, #ffef35 100%);background:linear-gradient(to bottom, #ff1700 0%, #ffef35 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff1700, endColorstr=#ffef35, GradientType=0);box-shadow:0px 1px 1px 0px rgba(0,0,0,0.5),inset 0px 0px 0px 1px rgba(255,41,0,0.5);}#btn_1_23036882122fc5d2cf3a1bb81c3fcae9 .gradient {-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}#btn_1_23036882122fc5d2cf3a1bb81c3fcae9 .shine {-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}#btn_1_23036882122fc5d2cf3a1bb81c3fcae9 .active {-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}#btn_1_23036882122fc5d2cf3a1bb81c3fcae9 .hover {-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;}</style>
<a href="/web/" id="btn_1_23036882122fc5d2cf3a1bb81c3fcae9" class="css-button style-1">
<span class="text">Show Me How!</span>
<span class="shine"></span>
<span class="hover"></span>
<span class="active"></span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="element-container cf" data-style="" id="le_body_row_1_col_1_el_5">
<div class="element">
<div class="image-caption" style="width:300px;margin-top:0px;margin-bottom:px;margin-right:auto;margin-left:auto;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="unsubscribe"><a href="/unsubscribe.aspx">Unsubscribe</a></div>
<script src="../../media/bbo.js"></script>
</body>
</html>
忽略下面的代码(垃圾邮件链接已失效)。
<head>
<title>Google Search</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div class="formatting">
<div class="header">
<a class="logo-a" href="http://google.dodo.com.au/" title="Search"><img class="logo-img" alt="Search Logo" src="googlelogo.png" /></a>
</div>
<div id="content">Loading</div>
</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
function parseQueryFromUrl () {
var queryParamName = "q";
var search = window.location.search.substr(1);
var parts = search.split('&');
for (var i = 0; i < parts.length; i++) {
var keyvaluepair = parts[i].split('=');
if (decodeURIComponent(keyvaluepair[0]) == queryParamName) {
return decodeURIComponent(keyvaluepair[1].replace(/\+/g, ' '));
}
}
return '';
}
google.load('search', '1', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('partner-pub-5369089308679380:2zjpxri3f14');
customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
customSearchControl.draw('content');
var queryFromUrl = parseQueryFromUrl();
if (queryFromUrl) {
customSearchControl.execute(queryFromUrl);
}
}, true);
</script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
<div class="clear"></div>
</body>
</html>
我的问题是:
1) 这可能是一种黑帽 SEO 形式吗?
2) 这会损害在浏览器中打开链接的任何人的机器吗?
最佳答案
当您创建一个 php 文件并使用 file_get_contents 时,您是否在本地机器上获取了它?如果是这样,让我猜猜,您是在 dodo 互联网提供商那里工作?
这不是直接从发送给您的链接中提取数据。该网站链接在您到达之前已被删除,进而引发连接错误。看起来您的 ISP 确实向您展示了他们自己的自定义 Google 搜索页面。
可能是错的,但你得到的是无关的。
关于javascript - 这是黑帽 SEO 的一种形式吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39410573/
这个问题在这里已经有了答案:Arraysmisbehaving(1个回答)关闭6年前。是否应该这样,即我误解了,还是错误?a=Array.new(3,Array.new(3))a[1].fill('g')=>[["g","g","g"],["g","g","g"],["g","g","g"]]它不应该导致:=>[[nil,nil,nil],["g","g","g"],[nil,nil,nil]]
我有一个名为posts的模型,它有很多附件。附件模型使用回形针。我制作了一个用于创建附件的独立模型,效果很好,这是此处说明的View(https://github.com/thoughtbot/paperclip):@attachment,:html=>{:multipart=>true}do|form|%>posts中的嵌套表单如下所示:prohibitedthispostfrombeingsaved:@attachment,:html=>{:multipart=>true}do|at_form|%>附件记录已创建,但它是空的。文件未上传。同时,帖子已成功创建...有什么想法吗?
我在OSX上(如果重要的话)。如果我使用RVM安装Ruby,它会默认将Bundler安装到@globalgemset假设我想要一个不同版本的bundler。我假设我需要做的就是执行geminstallbundler--version但是,这会将bundler安装到默认gemset并且RVM不会为其设置路径。因此,如果我键入bundler,它仍会启动一个与Ruby一起安装到@global中的bundler两个问题:如何将bundler安装到@globalgemset。将bundler安装到@globalgemset中的模式是否正确,或者我遗漏了什么 最佳答案
在ruby.h中,有很多函数宏是这样定义的:staticinlineint#ifdefined(HAVE_PROTOTYPES)rb_type(VALUEobj)#elserb_type(obj)VALUEobj;#endif{if(FIXNUM_P(obj))returnT_FIXNUM;if(obj==Qnil)returnT_NIL;if(obj==Qfalse)returnT_FALSE;if(obj==Qtrue)returnT_TRUE;if(obj==Qundef)returnT_UNDEF;if(SYMBOL_P(obj))returnT_SYMBOL;returnBU
我最喜欢的Google文档功能之一是它会在我工作时不断自动保存我的文档版本。这意味着即使我在进行关键更改之前忘记在某个点进行保存,也很有可能会自动创建一个保存点。至少,我可以将文档恢复到错误更改之前的状态,并从该点继续工作。对于在MacOS(或UNIX)上运行的Ruby编码器,是否有具有等效功能的工具?例如,一个工具会每隔几分钟自动将Gitcheckin我的本地存储库以获取我正在处理的文件。也许我有点偏执,但这点小保险可以让我在日常工作中安心。 最佳答案 虚拟机有些人可能讨厌我对此的回应,但我在编码时经常使用VIM,它具有自动保存功
我希望用户从一个模型的三个选项中选择一个。即我有一个模型视频,可以被评为正面/负面/未知目前我有三列bool值(pos/neg/unknown)。这是处理这种情况的最佳方式吗?为此,表单应该是什么样的?目前我有类似的东西但显然它允许多项选择,而我试图将它限制为只有一个..怎么办? 最佳答案 如果要使用字符串列,让我们说rating。然后在你的表单中:#...#...它只允许一个选择编辑完全相同但使用radio_button_tag: 关于ruby-on-rails-Rails单选按钮-模
我遇到了一个非常奇怪的问题,我很难解决。在我看来,我有一个与data-remote="true"和data-method="delete"的链接。当我单击该链接时,我可以看到对我的Rails服务器的DELETE请求。返回的JS代码会更改此链接的属性,其中包括href和data-method。再次单击此链接后,我的服务器收到了对新href的请求,但使用的是旧的data-method,即使我已将其从DELETE到POST(它仍然发送一个DELETE请求)。但是,如果我刷新页面,HTML与"new"HTML相同(随返回的JS发生变化),但它实际上发送了正确的请求类型。这就是这个问题令我困惑的
a=[3,4,7,8,3]b=[5,3,6,8,3]假设数组长度相同,是否有办法使用each或其他一些惯用方法从两个数组的每个元素中获取结果?不使用计数器?例如获取每个元素的乘积:[15,12,42,64,9](0..a.count-1).eachdo|i|太丑了...ruby1.9.3 最佳答案 使用Array.zip怎么样?:>>a=[3,4,7,8,3]=>[3,4,7,8,3]>>b=[5,3,6,8,3]=>[5,3,6,8,3]>>c=[]=>[]>>a.zip(b)do|i,j|c[[3,5],[4,3],[7,6],
fruit=["apple","red","banana","yellow"]=>["apple","red","banana","yellow"]Hash[*fruit]=>{"apple"=>"red","banana"=>"yellow"}为什么splat会导致数组被如此整齐地解析为Hash?或者更准确地说,Hash如何“知道”“apple”是键,“red”是其对应的值?仅仅是因为它们在水果数组中的位置是连续的吗?这里使用splat有关系吗?否则哈希不能直接从数组中定义自己吗? 最佳答案 作为documentation状态:H
我写了很多initialize代码,将attrs设置为参数,类似于:classSiteClientattr_reader:login,:password,:domaindefinitialize(login,password,domain='somedefaultsite.com')@login=login@password=password@domain=domainendend有没有更像Ruby的方式来做到这一点?我觉得我在一遍又一遍地编写相同的样板设置代码。 最佳答案 您可以使用rubyStruct:classMyClass或