cPanel: How to block visitor by country through GeoIP

To block a certain country IP range, you do not need to know which IP range it is and what you need is to use the GeoIP feature.

To install GeoIP, refer to the following URL,

Next, you will need to insert the following command to the .htaccess file,

RewriteEngine on
RewriteRule ^(.*)$ [L]

The command use to redirect China IP to***

***This is an example only and it is not to abuse any user/visitor reside in China.

Not able to login to FrontPage Extension Admin Page

When you have IIS 6 with Frontpage extension 2002 and you have installed the FrontPage Extension 2002 to your IIS 6.0 and wish to check the FrontPage Extension Health and recalculate it but you failed to login (Keep on prompt the login page) to the Administrator page after hit on the Administrator page from the FrontPage manage page.

Firstly, please verify if you have used the correct login detail by typing the login password to a notepad at first. If you still failed to login and hit the cancel button where the page redirect you to a unauthenticated page, you may try with the solution as below where to disable the loopback checking.

Continue reading Not able to login to FrontPage Extension Admin Page

Redirect A Website with mod_rewrite

.htacess is very useful when you want to manage your website. It can be used to define the value that you want, block certain IPs, etc.

To redirect a website, you do not need to hard code from every single of your page, but you may use the .htaccess rewrite to get it done.

To redirect a domain name to www such as to

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mickgenie\.com$
RewriteRule ^(.*)$ [R=301,L]

To redirect and to

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.mickgenie\.com$ [OR]
RewriteCond %{HTTP_HOST} ^mickgenie\.com$
RewriteRule ^(.*)$ [R=301,L]