Alexa世界排名原理+作弊源码,为网站赢得好排名 |
您所在的位置:网站首页 › alexa全球排名10万 › Alexa世界排名原理+作弊源码,为网站赢得好排名 |
虽然说 Alexa世界排名存在水分,高低都无所谓,只要能在搜索引擎中排名靠前就好了,但是一些风险投资还是把它当作网站的一个参考依据,就迫使一些网站不得不提升自己的Alexa世界排名,那如何让你的网站在Alexa世界排名靠前,吸引更多的风险投资呢?国内大多数网站刚起步的时候都是靠作弊,那怎样作弊才不被发现,算是“合理”的呢,下面就简单的说一说 原理:必须在你电脑上面安装了alexa工具条,用IE访问时才可以被alexa统计到,否则是不会被统计到的,alexa主要统计的是IP和PV,同一IP在同一天内多次访问同一页面,将被统计一次,也就是PV是1,所以必须多IP,多PV才可以提高排名。网上也有很多作弊的,推荐一些,如http://autosurf.alexabooster.com/http://www.menho.com/Index.Asphttp://www.azroo.com/http://www.googlecn.cn/http://alexa.baidui.com/他们的优点是可以相互刷,带来不同的IP,缺点是被刷的页面太少,被刷到的机会太小,每天的PV很难有大的提高。 下面就结合上面的作弊工具和我提供的一些代码,一起使用,来快速提高你的网站的alexa排名 第一步,首先下载安装alexa工具条,如果已经安装了,那跳过这一步即可。如果还没有安装,请下载安装。安装步骤可以参考 http://bbs.sooboo.com.cn/1619/ShowPost.aspx 第二步,确保alexa工具条是可以工作的,xp系统下有的时候alexa工具条不能正常显示,解决办法是安装一个yahoo助手,然后在上网助手中,选择“插件拦截”,打开后,在工具插件中,第一项就是“ALEXA工具条”,选择它,然后在对话框底部,点“允许弹出”。如下图 第三步,建立一个alexa.htm页面,代码如下 alexa排名演示 var nInterval; function chkRefresh() { win=window.open("alexa.aspx","mzs",""); nInterval=setInterval("go()",15000); } function go() { if(win.closed==true){chkStop();}else{ win.location="alexa.aspx";} } function chkStop() { window.clearInterval(nInterval); win.close(); }第四步,建立一个alexa.aspx页面,html代码 alexa //每隔一定时间自动调用该页面,此时该页面用ajax随机调用数据库url,从而实现alexa刷新 //debugger; var dt = alexa.GetUrl().value.Tables[0]; if (dt.Rows.length > 0) { window.location.href=dt.Rows[0].url; }cs代码 public class alexa : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { Utility.RegisterTypeForAjax(typeof(alexa)); } [AjaxMethod()] public DataSet GetUrl() { DataSet ds = new DataSet(); string strConnection = System.Configuration.ConfigurationSettings.AppSettings["ConnStr"]; SqlConnection conn = new SqlConnection(strConnection); SqlCommand cmd = conn.CreateCommand(); cmd.CommandText = "select top 1 * from alexa order by newid()"; SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(ds); conn.Close(); if(ds!=null) { return ds; } else { return null; } } Web Form Designer generated code#region Web Form Designer generated code override protected void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } /**//// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion }第四步,可以用访问目录的方式,也可以用数据库的方式来读取url,我这里是按数据库的方式来演示的,建立一个表,结构如下 if exists ( select * from dbo.sysobjects where id = object_id (N ' [dbo].[alexa] ' ) and OBJECTPROPERTY (id, N ' IsUserTable ' ) = 1 ) drop table [ dbo ] . [ alexa ] GO CREATE TABLE [ dbo ] . [ alexa ] ( [ id ] [ int ] IDENTITY ( 1 , 1 ) NOT NULL , [ url ] [ nvarchar ] ( 500 ) COLLATE Chinese_PRC_CI_AS NULL ) ON [ PRIMARY ] GO第五步,把你网站的所有页面都录入到数据库,直接在查询分析器中用insert语句,就不用录入页面了 第六步,最好动员全公司的人,让大家一起设置ie默认页为alexa.htm,如http://www.cnblogs.com/alexa.htm ,然后点击“开始刷”,不要把alexa.htm和alexa.aspx两页面关闭就可以了正常刷了。 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |