简体   繁体   English

此网页发生重定向循环

[英]This webpage has a redirect loop occurance

My wordpress website was crashed due to addition of script 我的wordpress网站由于添加了脚本而崩溃

 <script type="text/javascript">
  var myCallback = function( myParam ) {
  alert( "this was called across domains!" );
  };
  </script>
   <script type="text/javascript" src="http://crossdomainhost/CrossDomainConsumerSite/Default.aspx?callback=myCallback&param=myParam></script> 

I removed the script from my code but now the website is still not working. 我从代码中删除了脚本,但是现在该网站仍然无法正常工作。 Do anyone has a solution for this? 有人对此有解决方案吗? on opening webpage, it shows--> 在打开网页时,它显示->

 This webpage has a redirect loop

You can drive yourself crazy trying to understand what code is being added to your Wordpress site and how it's causing loops, etc. The easiest and best solution to a Wordpress site getting hacked is to do the following: 您可能会发疯,试图了解向您的Wordpress网站添加了什么代码以及它如何引起循环等。对于被黑客入侵的Wordpress网站,最简单,最佳的解决方案是执行以下操作:

  1. Change all your passwords, including Wordpress admin and your hosting account control panel, ftp, and any other passwords. 更改所有密码,包括Wordpress admin和您的托管帐户控制面板,ftp以及其他任何密码。
  2. Reinstall Wordpress from the latest version. 从最新版本重新安装Wordpress。
  3. Upgrade to the latest version of the Wordpress theme you're using. 升级到您正在使用的Wordpress主题的最新版本。
  4. Get rid of all themes you don't currently have active. 摆脱您当前未激活的所有主题。

This happened to me before and I got frustrated that my hosting provider couldn't help me at all, in fact they were threatening to cancel my account because phishing attempts were originating from my site. 这之前发生在我身上,我感到沮丧的是我的托管服务提供商根本无法帮助我,实际上他们威胁要取消我的帐户,因为网络钓鱼尝试来自我的网站。 So, I left the hosting provider and wrote a bunch of scripts to figure out how I was getting hacked. 因此,我离开了托管服务提供商,并写了一堆脚本来弄清楚我是如何被黑的。 Bottom line is that I didn't find out much at all, but my site is fully restored now. 底线是我什么都没找到,但是我的网站现在已完全恢复。

您可以尝试以下操作:-从WP svn下载与您的版本匹配的WP版本-用您的目录替换wp-content目录-替换htaccess文件和index.php文件立即尝试访问

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM