Alexa世界排名原理+作弊源码,为网站赢得好排名
???????? 原理:必須在你電腦上面安裝了alexa工具條,用IE訪問時(shí)才可以被alexa統(tǒng)計(jì)到,否則是不會(huì)被統(tǒng)計(jì)到的,alexa主要統(tǒng)計(jì)的是IP和PV,同一IP在同一天內(nèi)多次訪問同一頁面,將被統(tǒng)計(jì)一次,也就是PV是1,所以必須多IP,多PV才可以提高排名。網(wǎng)上也有很多作弊的,推薦一些,如
http://autosurf.alexabooster.com/
http://www.menho.com/Index.Asp
http://www.azroo.com/
http://www.googlecn.cn/
http://alexa.baidui.com/
他們的優(yōu)點(diǎn)是可以相互刷,帶來不同的IP,缺點(diǎn)是被刷的頁面太少,被刷到的機(jī)會(huì)太小,每天的PV很難有大的提高。
???????? 下面就結(jié)合上面的作弊工具和我提供的一些代碼,一起使用,來快速提高你的網(wǎng)站的alexa排名
??????????第一步,首先下載安裝alexa工具條,如果已經(jīng)安裝了,那跳過這一步即可。如果還沒有安裝,請(qǐng)下載安裝。安裝步驟可以參考 http://bbs.sooboo.com.cn/1619/ShowPost.aspx?
????????? 第二步,確保alexa工具條是可以工作的,xp系統(tǒng)下有的時(shí)候alexa工具條不能正常顯示,解決辦法是安裝一個(gè)yahoo助手,然后在上網(wǎng)助手中,選擇“插件攔截”,打開后,在工具插件中,第一項(xiàng)就是“ALEXA工具條”,選擇它,然后在對(duì)話框底部,點(diǎn)“允許彈出”。如下圖
????????? 第三步,建立一個(gè)alexa.htm頁面,代碼如下
????<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>
????????? 第四步,建立一個(gè)alexa.aspx頁面,html代碼
<html>??<head>
????<title>alexa</title>
??
??</head>
??<body?MS_POSITIONING="FlowLayout">
????
????<form?id="Form1"?method="post"?runat="server">
?????</form>
?????<script?language="javascript">
????????//每隔一定時(shí)間自動(dòng)調(diào)用該頁面,此時(shí)該頁面用ajax隨機(jī)調(diào)用數(shù)據(jù)庫url,從而實(shí)現(xiàn)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
????}
?????? 第四步,可以用訪問目錄的方式,也可以用數(shù)據(jù)庫的方式來讀取url,我這里是按數(shù)據(jù)庫的方式來演示的,建立一個(gè)表,結(jié)構(gòu)如下
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
???????? 第五步,把你網(wǎng)站的所有頁面都錄入到數(shù)據(jù)庫,直接在查詢分析器中用insert語句,就不用錄入頁面了
???????? 第六步,最好動(dòng)員全公司的人,讓大家一起設(shè)置ie默認(rèn)頁為alexa.htm,如http://www.cnblogs.com/alexa.htm?,然后點(diǎn)擊“開始刷”,不要把a(bǔ)lexa.htm和alexa.aspx兩頁面關(guān)閉就可以了正常刷了。
效果演示
總結(jié)
以上是生活随笔為你收集整理的Alexa世界排名原理+作弊源码,为网站赢得好排名的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python 大智慧365 数据格式_大
- 下一篇: Java编译器和Java解释器---即时