Archive for September, 2009
Prevent DDOS Attack
1Prevent DDOS Attack (D)DoS-Deflate script monitors and tracks the IP addresses that are sending and establishing large amount of TCP network connections. When it detects number of connections from a single IP that exceeds certain preset limit, the script automatically uses APF or IPTABLES to ban and block the IPs.
Installation:
wget http://www.inetbase.com/scripts/ddos/install.sh chmod 0700 install.sh ./install.sh
UnInstall:
GD Star Ratingloading...wget http://www.inetbase.com/scripts/ddos/uninstall.ddos chmod 0700 uninstall.ddos ./uninstall.ddos
.htaccess Bad Bot Block
0.htaccess Bad Bot Block
GD Star Ratingloading...ErrorDocument 403 /403.html SetEnvIfNoCase ^User-Agent$ .*(useragent1|useragent2|useragent3) BADBOT SetEnvIfNoCase ^User-Agent$ .*(useragent4|useragent5|useragent6) BADBOT SetEnvIf remote_addr xx.xx.xx.xx BADBOT Deny from env=BADBOT
Free up Linux memory
0Free Clear Purge System memory ( RAM ) in Linux.
Its best to leave the memory management to linus kernel but if you must clear up some memory then this is how you do it. Execute this command as root:
sync; echo 3 > /proc/sys/vm/drop_caches
What does it do ? sync; will write all the unwritten data to disk so that nothing is lost. echo 3 > /proc/sys/vm/drop_caches; will drop all the cached data from memory.
GD Star Ratingloading...WordPress vs vBulletin
1WordPress vs vBulletin
It will be like comparing apples with oranges as one is a Blog Script and other is Forum. But both the scripts are based on similar technologies ( php/mysql) and there are some similar features.
WordPress’ look and feel is more in liaison with 2008/2009 technologies, vbulletin comparably looks outdated.
The installation, up-gradation, out of the box ‘SEO’, performance, adding plugins , changing skins and overall look and feel is much better in wordpress, pity wordpress doesn’t have a forum solution.
GD Star Ratingloading...Putty Commands
0Putty Commands
ls – to list files in a directory syntax: ls
dir – same as ls syntax: dir
cd – change directory syntax: cd /home cp – copy a file syntax: cp file.zip /home
mv – move a file (also used to rename files) syntax to move : file.zip /home syntax to rename : oldfile.zip newfile.zip
rm – remove a file syntax to remove one file : rm file.zip syntax to remove all zip files : rm *.zip syntax to remove all files : rm -rf * syntax to remove a directory : rm -rf directoryname
mkdir – make directory syntax: mkdir newdirectory
GD Star Ratingloading...