Lost Password? Register
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • red color
  • green color
Member Area

Web Code

Home arrow Guides arrow HTML Guides arrow Blocking IP using .htaccess file
Blocking IP using .htaccess file PDF Print E-mail
Written by Administrator   
Thursday, 01 May 2008
In case you want to block a certain IP address from entering your site, lets say you found a hacker or injector, you should use the .htaccess file to deny them from ever trying again.

To block an IP address from entering your site, edit the .htaccess file (you should find it in the root folder of your site).

Add this code:

order allow,deny
allow from all
deny from 196.1.176.195

After the "deny from" write down the IP you want to block. you can add as many lines as you like one below the other to block more IP's.

 


Related Items:





Reddit!Del.icio.us!Facebook!Slashdot!Technorati!StumbleUpon!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!

Add as favourites (23) | Quote this article on your site | Views: 315

Be first to comment this article

Write Comment
Name:
Title:
Comment:

Code:* Code

 
Next >