IP Banning Through .htaccess

Setting up your error documents through the .htaccess file is easier than one might think. Here is an example of what you would want to cut and paste into your .htaccess file:

CODE 
ErrorDocument 400 /errors/400.html
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html

This tells the server that each of these errors pages are in the /errors/ folder and the exact file that needs to be seen when somebody encounters that error.

  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Related Articles

Domain Physical Path in Windows 2003 Server

In Windows 2003 server , all the domains and subdomains will have the following format of...

How to Move Blogger to Self-hosted WordPress

How to Move Blogger to Self-hosted WordPress In this example, say that you have a Blogger blog...

Setting Up A Web Page Redirect in Linux

Setting up a web page redirect is really easy. The simplest way would be to just to do it through...

Difference Between The "public_html" and "www" In Linux

There really is no difference; your web root (where you upload your web site files to) is the...

SSL Certificate Transfer

Transfer SSL certificate: Windows Platform: For windows platform, kindly provide us...