Posts Under 'Tutorials'

How to block ip address on Fedora/Linux using iptables?

Today, I was looking at fedora server logs and discovered that lots of failed automated ssh hacking attempts on various ports. So, to block these IP addresses, googled and found lots of resources on this topic. I thought to keep a log about this. I already did some configuration with hosts.allow and hosts.deny which you […]

Read more »


How to create zip file archives in PHP and serve for download

Creating dynamically zip file archives in PHP is very easy. I wanted to give an option in a client site after uploading files, they can download all the uploaded files. Instead of giving an option to download one by one, i was looking for an option to create zip file and give an option to […]

Read more »


Blocking SPAM using Postfix header_checks and SpamAssassin

We have dedicated server with Godaddy running Postfix as a mail sever and SpamAssassin as a mail filter. There are some contact mails specified on our websites, which were getting 1000’s of spam mails daily. SpamAssassin is active on our server but it was just adding extra [SPAM] in the subject of the emails. I […]

Read more »


The worlds fastest way to access Outlook

What will seem familiar is the need to access information very quickly – often with just a few minutes to spare. The problem we face is that the notebook PCs on which that information is stored may take that much time or more just to boot up and launch the applications you need to get […]

Read more »


How to Add – Remove the WWW Prefix from Domain Name Using .htaccess

To avoid duplicate content problem with search engines, you have to redirect all pages to one common URL. This you can achieve using mod_rewrite of apache and .htaccess. To redirect any URL starting with www.domain.tld to domain.tld, you have to add the following code to .htaccess file. Do a 301 redirect for all http requests […]

Read more »