不同的 client 軟體, 使用 sftp 傳檔, 沒想到速度差異如此大
以下是在我環境下測的結果, server 同一台, 抓同一個 20MB 的檔
CuteFTP Pro 6.0 137 KB/s
FileZilla 2.2.11 36X KB/s
WinSCP 3.7.4 3.3 MB/s
SSH Secure File Transfer Client 3.2.5 4.1 MB/s
Linux sftp 4.1 MB/s
Notes: February 2005 Archives
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name]
@="notepad.exe"
regedit /e PuTTY.reg HKEY_CURRENT_USER\Software\SimonTatham
Example:
Add auth in directory /home/pank/public_html/auth
User pank, password 1111
- Create .htaccess (in /home/pank/public_html/auth)
AuthName "Simple Auth"
AuthType Basic
AuthUserFile "/home/pank/public_html/auth/.htpasswd"
require valid-user
- Create .htpasswd
htpasswd -cb .htpasswd pank 1111
(-c for Create a new file, -b for Use the password from the command line rather than prompting for it)
htpasswd -b .htpasswd test 2222
- Edit httpd.conf
<Directory "/home/pank/public_html/auth">
AllowOverride All
</Directory>
- Restart Apache
I think SCode is the best solution to fight comment spam for MT
SCode needs GD and GD.pm
install gd, libpng first (ports/graphics/gd, ports/graphics/png)
./configure --with-png when build GD or cd /usr/ports/graphics/gd; make WITH_XPM=yes
to build GD.pm, needs perl 5.6 or higher
wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.30.tar.gz
perl Makefile.PL
make
make test (optional)
make html (optional)
make install
ref.
防制發廣告機器人的檢核碼
Blog comment spam fighting
An easy way to get rid of MT comment spam