有些朋友問我為甚麼他們的網站出現不了在Google的搜尋結果頁面,我也看過他們的網站, 基本上是沒有問題的. 後來發現了Google Webmaster guildlines, 才知道出了甚麼問題. 現在他要重新提交網站給Google檢測, 好讓他的網站”重見光明”. 這個連結http://www.google.com/support/webmasters/bin/answer.py?answer=35843 說明了如何向Google提交重新考慮的方法.
Google的網管指南大致上分為三個部份, 而最重要的部份是”質量指南”. Google 最強調的是每個網站的”品質”, 如果只是為了讓網站排名登上高的位置而不擇手段的話, 是會被處罰的, 結果就會像我的朋友一樣, 網站不被納入Google的搜尋結果, 結果的學名叫”Sand-box”, 中文就是”殺到死”, 哈哈!
在質量指南第一部份, Google定義了甚麼網站是有質素的:
質量指南 – 基本原則:
為用戶創建頁面, 不要只為了搜尋器而創建. 不要欺騙你的用戶, 或者顯示不同的內容給搜尋器看, 而用戶實際上看到的卻不同, 這通常叫”障眼法”.
避免用花招來改善搜尋排名. “問問自己, 如果沒有搜尋器, 我要這樣做嗎?”
不要參加”超連結方案/活動”, 就是說把一大堆的超連結放在大家的網站裡, 以為這樣會提高網站排名和PageRank. 特別是不要把連結放到垃圾網站裡, 通常這些網站沒有內容, 在Google眼裡是沒有質素可言, 而且它會影響到你的網站排名, 因為你們都是連結在一起的, 會令到Google覺得你也是沒有質素.
不要用未被授權的電腦軟件去提交網頁, 查詢排名. 這些軟件會消耗電腦的資源, 而且違反了Google的使用條款. Google不建議使用一些產品例如WebPosition GoldTM.
質量指南 – 特定原則:
避免隱藏文字或者連結
不要用障眼法
不要傳送自動詢問指令到Google
不要放置與頁面無關的關鍵字
不要創造大致上一樣的重複內容在多個頁面, 多個子域名, 或者多個域名中
不要創建懷有惡意行為的頁面, 如網絡釣魚, 安裝病毒, 木馬, 或其他不良的軟件
避免為搜尋器創造”門口”頁面, 就是說每一個頁面強調一個關鍵字, 然後帶領用戶到另一個網站. Google想提供一個準確和有價值的搜尋結果, 如果這樣做, 與google的宗旨相違背.
如果你的網站參加了聯盟計劃, 請確保你的網站提供有質素的內容. 為網站提供獨有和相關的內容, 好令用戶有個理由去訪問你的網站.
總結:
以上質量指南在Google中的位置是最重要的, 如果你附合以上的各點, 並堅持提供有內容的網頁給用戶, 我相信Google應該不會忍心把你放到第100頁吧~
**以上資料只供參考, 一切以來源為準, 希望能夠幫助各位. http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35769
2009年8月23日 星期日
2009年8月18日 星期二
vpn solution2 – windows openvpn client 免費的vpn 客戶端
上文提及過 openvpn server的制作方法, 這篇文章會介紹服務器端與客戶端配合的一個例子. 
在客戶端方面, 用家大部份都會用 Windows + openvpn. 在 Windows 下安裝 openvpn 十分簡單, 只需要以下步驟
- 到這裡下載 openvpn 圖形介面客戶端
http://openvpn.se/files/install_packages/openvpn-2.0.9-gui-1.0.3-install.exe - 雙click install.exe 安裝
- 到 C:\Program Files\OpenVPN\config 創建 / 編輯 ovpn 檔案 (yourservername.ovpn)
- .opvn示範檔案如下
- client
- dev tap
- proto udp
- # change this to your server’s address
- remote 123.123..123..123 1194
- resolv-retry infinite
- nobind
- persist-key
- persist-tun
- #tls-client
- ca keys/ca.crt
- cert keys/keithyau.crt
- key keys/keithyau.key
- #ensure that we are talking to a server
- ns-cert-type server
- #confirm we are talking to the correct server
- #tls-auth ta.key 1
- # Select a cryptographic cipher.
- # If the cipher option is used on the server
- # then you must also specify it her e.
- cipher AES-128-CBC
- # Enable compression on the VPN link.
- comp-lzo
- #fragment 1400
- # enable user/pass authentication
- # auth-user-pass
- 把鑰匙拷貝到 C:\Program Files\OpenVPN\config\keys , 以下是在服務器端上鑰匙的制法 (把keithyau 換成你的使用者名字, 詳情參考 http://keithyau.wordpress.com/2009/02/07/vpn-solution-2-openvpn/)
- sudo su
cd /etc/openvpn/examples/easy-rsa/2.0/
source ./vars
./clean-all
./build-ca
./build-key-server server
./build-key keithyau
./build-dh
cd keys
openssl dhparam -out dh1024.pem 1024
cd ..
openvpn –genkey –secret ta.key #optional
- sudo su
- 在右下角 openvpn icon按連接

- 測試連線
令服務器能接受以上設定的請求, 相應需要以下的設定
- # Which local IP address should OpenVPN
# listen on? (optional)
local 192.168.1.102
port 1194
proto udp
dev tap0
#direct these to your generated files
ca /etc/openvpn/examples/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/examples/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/examples/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/examples/easy-rsa/2.0/keys/dh1024.pem
ifconfig-pool-persist ipp.txt
#需要 dhcp 服務器 的配合
server 10.3.0.0 255.255.255.0
# 服務器上沒有 dhcp 服務器的請選這行
# server-bridge 192.168.1.102 255.255.255.0 192.168.1.230 192.168.1.231
keepalive 10 120
#encryption
cipher AES-128-CBC
#Push routing configuration
#push “route 192.168.2.0 255.255.255.0″
#tls-auth ta.key 0
comp-lzo
#fragment 1400
#limit the number of connections
max-clients 5
#some secuurity settings
# do not use if running server on Windows
user nobody
group nogroup
persist-key
persist-tun
#log file settings
status openvpn-status.log
verb 3
# authentication plugin
#forces client to have a linux acount in order to connect (Not for Windows user)
# plugin /usr/lib/openvpn/openvpn-auth-pam.so login
這裡有安裝 DHCP server 的方法
sudo apt-get install dhcp3-server
sudo vi /etc/default/dhcp3-server
更改 為 INTERFACES=”br0″ # br0 = 你的網卡名稱
sudo vi /etc/dhcp3/dhcpd.conf
把其中一個示範修改為 (10.3.0.0 是你打算指派的網絡)
subnet 10.3.0.0 netmask 255.255.255.0 {
range 10.3.0.100 10.3.0.200;
option routers 192.168.1.1;
}
/etc/init.d/dhcpd restart
/etc/init.d/openvpn restart
訂閱:
文章 (Atom)