原理:必须在你电脑上面安装了alexa工具条,用IE访问时才可以被alexa统计到,否则是不会被统计到的,alexa主要统计的是IP和PV,同一IP在同一天内多次访问同一页面,将被统计一次,也就是PV是1,所以必须多IP,多PV才可以提高排名。网上也有很多作弊的,推荐一些,如
http://autosurf.alexabooster.com/
http://www.menho.com/Index.Asp
http://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页面,代码如下
<
html
>
<
head
>
<
title
>
alexa排名演示
</
title
>

<
script
language
="javascript"
>
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();
}
</
script
>
</
head
>
<
body
>
<
input
type
='button'
id
='btn'
style
="width:60px"
value
="开始刷"
onclick
="chkRefresh();"
>
<
input
type
="button"
value
="停止刷"
name
="btnStopRefresh"
onclick
="chkStop();"
>
</
body
>
</
html
>
第四步,建立一个alexa.aspx页面,html代码
<
html
>
<
head
>
<
title
>
alexa
</
title
>
</
head
>
<
body
MS_POSITIONING
="FlowLayout"
>
<
form
id
="Form1"
method
="post"
runat
="server"
>

</
form
>

<
script
language
="javascript"
>
//每隔一定时间自动调用该页面,此时该页面用ajax随机调用数据库url,从而实现alexa刷新
//debugger;
var dt = alexa.GetUrl().value.Tables[0];
if (dt.Rows.length > 0)
{
window.location.href=dt.Rows[0].url;
}
</
script
>
</
body
>
</
html
>
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);
}

/**//// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
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两页面关闭就可以了正常刷了。
效果演示
本文介绍了一种通过技术手段合理提升网站Alexa排名的方法,包括安装工具条、使用特定代码和利用数据库URL刷新等步骤。
3314

被折叠的 条评论
为什么被折叠?



