There are two chief ways to redirect all requests for an entire server to a single location: one which requires the use of mod_rewrite, and another which uses a CGI script. First: if all you need to do is migrate a server from one name to another, simply use the Redirect directive, as supplied by […]
Internet & Networking
Block a visitor using .htaccess
Howto block a visitor of your website using .htaccess. First of all you will need to know the IP of the visitor you are going to block. Once you have the IP you can create the following .htaccess file: order allow,deny deny from XXX.XXX.XXX.XXX deny from XXX.XXX.XXX.XXX allow from all XXX.XXX.XXX.XXX: IP of a visitor […]
Custom Error Pages for your website
This tutorial will guide you how to create custom error pages for your website using .htaccess. Firstly you can create a folder named errors. Now you will have to create the files that will be displayed as following: /errors/badrequest.html – responds for 400 apache error /errors/authreqd.html – responds for 401 apache error /errors/forbid.html – responds […]
Using DIG to check DNS
About DIG DIG is a command-line utility used for making DNS queries and displaying their results. It is a much better tool than nslookup. DIG runs on Linux and Windows equally well, and is probably available for most other operating systems too. If you have Linux, DIG is probably already there. Installation of DIG on […]
Password protecting a directory
It’s pretty simple. It can be done in 5 simple steps. 1: Create the directory area and set permissions to read the area 2: Create a file called .htaccess in the directory you want to protect In that file, type in these lines: AuthUserFile /your/directory/here/.htpasswd AuthGroupFile /dev/null AuthName “Secure Document” AuthType Basic require user username […]
How to set proxy in Firefox
How to set proxy in Firefox This guide will show you how to set proxy using some of the most popular browser Mozilla Firefox. Requirements: 1. Make sure clients are connected to the server and they have access to each other. 2. Find the proxy server address. This refers to the IP address of the […]
How to configure additional IP address in Linux
This tutorial will show you how to configure additional IP address on NIC under Red Hat Linux or Fedora Core. The following procedure uses eth0 as an example for assigning a second TCP/IP address. Use the following command to add the IP address: ifconfig eth0:1 xxx.xxx.xxx.xxx Where xxx.xxx.xxx.xxx is the actual IP address. Note that […]
How To Check Which Port Is Listening or Open on Linux
For some security reason you may configure SSH or any other protocol using different kind of port number on Linux server. Sometimes it?s important to know which ports are actually listen or open to the system network, it may open for network instruction or hacking. Basically there are few methods to see which ports are […]
Configuring Kmail mail client for Gmail
This howto will show you how to setup your Kmail client to work with Gmail. Step 1: From the menu above select Settings -> Configure Kmail Notice: In order to preview the image better click on it. Step 2: Here you should click on “Identities” and then in manage identities you should modify the existing […]
Howto increase the TTL value with iptables
To share the internet connection we have to make sure that the TTL value is bigger then 1. In case that the TTL is 1 we will have to increase it. This article is going to describe how to increase the TTL so the other machines behind your router will be able to use internet. […]