Mediumcube.com Web Hosting Blog

December 22, 2008

Block Certain Users from Accessing your website

Filed under: General — admin @ 2:39 pm

Many of us have websites dedicated to certain markets or countries. However, due to the Internet being a global space, we’ll often end up delivering traffic to users that may not be within our target audience.

At other times, we get annoyed by certain users on our websites that usually wreck havoc by either spamming the forum/blog we’re running or cause other annoyances to the site visitors.

There is a handy tool that we can use to filter out the visitors we don’t want while maintaing site accessibility to the others. It is called “.htaccess” file. The .htaccess file if placed inside your web root folder (typically public_html), it can simplify the way you manager your website.

For instance, to block a certain IP address from accessing our website, we would create a file called: .htaccess and save the following content inside it:

<Limit GET HEAD POST>
order allow,deny
deny from 41.204.224.50
allow from all
</limit>

The above code would block the user on IP address: 41.204.224.50 from accessing your web page. Obviously, you’ll have to remember that most users on the internet are assigned temporarily IP addresses that can change from time to time. So block a single IP address will likely not permanently block that user.

Nevertheless, this idea can be further expanded to block certain regions or countries in the world from accessing your website. Lets say you’re having some trouble with users visting your website from Nigeria. You wish to block access to your website from anywhere in Nigeria. First, you’ll need to obtain list of IP address blocks used in Nigeria. A very handy site for that is http://blockacountry.com which offers as comprehensive of a list as possible which associates IP addresses to countries. NOTE: This list may be incomplete or may contain errors. You should be very careful when blocking a whole country as that may include innocent users that reside outside of that country who may be leasing IP addresses in that same network block.

Follow the steps on the blockacountry.com page which will generate your .htaccess code. Copy/Paste that code into your .htaccess file, and upload it to your Unix based server. This will deny access to any site visitor coming from the black-listed IP addresses.

For our Shared Unix users on cPanel servers, there is a simple way to add an IP address to your block list. This is typically available under your cPanel control panel interface -> Security section -> IP Deny Manager icon.

December 18, 2008

Important Microsoft Internet Explorer Patch

Filed under: Technical — admin @ 9:21 pm

Microsoft has recently released a critical patch for Internet Explorer known as KB960714. The update affects all versions of Internet Explorer on all Windows Operating Systems including Windows Vista and Server 2008.

The importance of the patch is based on currently available exploits that target Internet Explorer. Malicious code can be injected into Internet Explorer browser without a user’s permission allowing the attacker to gain system wide access to the Operating System.

By the time Microsoft had released this security update, there had been already many thousands infected websites compromising users systems. The malicious code only affects Internet Explorer, however, due to the fact that any website which contains the malicious code will be able to infect a user system, it is crucial that users apply the path immediately or temporarily shift to alternative browsers such as FireFox, Chrome or Opera.

To apply the patch, please visit http://windowsupdate.microsoft.com or follow the instructions to download the patch from http://support.microsoft.com/kb/960714 

Note to our clients, we had already applied the patch to all of our Windows servers once it was released by Microsoft. We’re take pride in proactively protecting our customers data around the clock.

December 10, 2008

Technical difficulties with the Ferrari Windows server

Filed under: Technical — admin @ 6:28 am

At approximately 1:05 AM EST on the morning of Wednesday December 10th, the Ferrari Windows server where your website is hosted had experienced erratic data integrity issues with the RAID data drives. At times, the server would often reboot or freeze for a period of 10 minutes between 1 AM – 2 AM. Immediately, our system administrators began working on isolating the cause of the problem. The findings appear to suggest that the RAID-1 array supporting the data drives had experienced a data corruption.
 
 We’d attempted several steps to remedy the problem by repairing the RAID array or attempting to extract data from it directly, however, none of our actions came to fruition. Therefore, at approximately 4:30 AM EST we’d decided to restore the drives data from our latest backups. Due to other technical problems that arose with the network component of the Ferrari server, the restoration process did not begin until 5:55 AM EST.
 
 The backup restoration was completed at 7:45 AM EST.
 
 Due to the data corruption, the only backup we could restore back to was the morning of Tuesday December 9th. Therefore, any changes you’ve made to your website files, emails that were saved on the server, or database changes that were made between Tuesday Dec 9th and morning of Wednesday Dec 10th were not recovered.
 
 If you notice that your SQL or Access database is older than the morning of Tuesday December 9th, please notify us and we’ll check the backups for any later version.
 
 We do apologize for any inconvenience this may have caused. We have had an excellent performance and reliability track record prior to this incident, and we’ll continue to work double as hard to provide you with an optimal reliability in the future. We’re planning to upgrade the Ferrari server within the next month to prevent such problems from re-occurring in the future. 

We do apologize for any inconvenience this may have caused. Your account manager will be in touch with you through e-mail to provide further details on the outage and how to obtain a credit back.

If you experience any problems, please contact our support at http://www.mediumcube.com/support_contact.php

Powered by WordPress