聚沙成塔

養貓的陌生人筆記本

使用 telnet 連上 IRC Server

No Comments »

IRC 是一個聊天型的服務,不過是明碼的,
以下示範如何用 telnet 指令就登入 IRC Server


telnet  irc.server.domain  6667

NICK [your name]

USER [your name]  irc.server.domain blah germaN

join #[ch-name]

PRIVMSG  #[ch-name]  : TSET

Read the rest of this entry »

使用反向代理 squid 保護 apache

No Comments »

squid 的功能我就不贅述了,除了當作 httpd-proxy server 之外,還能保護後端的網站,
減少該網站 I/O 的效能消耗。
以下為 squid.conf 的組態設定,#部份是 FreeBSD 的路徑

Read the rest of this entry »

控制搜尋引擎蜘蛛

No Comments »

網站流量節節升高,
所以必須節流的時候到了!
開啟一個空白檔案 叫做 robots.txt 在網站根目錄下,
內容為:

Read the rest of this entry »

Awstats 產生靜態頁面

No Comments »

Awstats 是一個眾所皆知、使用 cgi 功能來顯示結果的 apache log 分析軟體,
但是 cgi 的漏洞也是眾所皆知的事; 因此到底要不要開與關 apache 的 mod_cgi 來執行 awstats ?
這是一個常常被初學者忽略需要注意的事,
不過我們可以完全不用打開 mod_cgi 功能就可以讓 awstats 一樣工作,
不打開 cgi 功能的好處就是不會有遭受被 cgi 漏洞攻擊的可能性。

Read the rest of this entry »