Disable Hot-Linking of images and other files

A hot-linking is when some other site uses images hosted on yours. For example a.com has some pretty nice images. Then b.com decides that instead of hosting these images on their server, they can just link from their pages to the images hosted on site a.com. Hot-linking usually is bandwidth and of course content stealing. […]

Using .htaccess to block referrer spam

Lately referrer spam became a great annoyance for the webmasters. If you are not sure what referrer spam is you may wish to check this article: http://en.wikipedia.org/wiki/Referrer_spam To block these spam referrers you need the following lines in your .htaccess file: # set the spam_ref variable SetEnvIfNoCase Referer «^http://(www.)?some-spammer.com» spam_ref=1 SetEnvIfNoCase Referer «^http://(www.)?other-spammer.com» spam_ref=1 SetEnvIfNoCase […]

Using .htaccess for password protecting your folders

If you need to have certain areas (folders or files) of your web site protected you can use .htaccess and .htpasswd files to enable a basic user/pass protection. The Apache web server provides a quick and easy way to protect a file or folder on your site. The password protection depends on two files. The […]

How to change the error documents – 404 Page Not Found, etc

Using .htaccess file you can easily change the default error pages that are being served by your web server. To use .htaccess to modify your web site error pages your server needs to be configured with AllowOverride FileInfo. Most web hosting servers are configured in such a way so having a custom error page instead […]

Why Unlimited or Unmetered hosting packages are not possible?

There are hosts that offer unlimited bandwidth. What they mean is that they may not expect you to use more than a certain amount, as there are practical limits on most everything, including bandwidth. To claim unlimited is typically a marketing ‘hook’ to get you sign up. In reality, once you reach a certain limit, […]

Do I need dedicated server?

Having a dedicated server gives you high flexibility and a lot of options for your site. Usually you have root/admin access to the server and you can manage and modify each aspect of the server behavior – software running, configuration, etc. So if your site needs more than any shared hosting plan can offer or […]

Top Ten Reason To Market Your Business Online

The Internet. The great leveling medium that makes a small business nearly as accessible as TheBigCorporation.com. But many businesses throw up a site without much thought about the potential impact it can have their business. Why should you have a web site? Why should your business be online? These 10 reason will give you something […]

How to prevent or allow directory listing?

Having a listable directories on your site sometimes is useful. However, some times it can be considered a security issue. No, matter which option you prefer you can control this behavior of your site using 1 simple line: Options +Indexes The above line enables Directory listing. Options –Indexes The above disables directory listing for your […]

How to block users from accessing your site based on their IP address

Blocking users by IP address is pretty simple with .htaccess. So here it is the example: Order allow, deny Deny from 192.168.0.10 Deny from 212.155. Deny from 1.2.3.4 5.6.7.8 127.0.0.1 Allow from all Let’s take a look at the code line by line: The first line “Order allow, deny” tells the web server the “Order” […]

Choosing the Right Domain Name

So you’ve decided to put a web site up on the Internet. In this article, we will discuss the best way to choose a domain name for your business web site, but many of the same principles apply if you are choosing a name for a hobby or informational site. So, let’s choose a name […]