• Home
  • About AllScoop
RSS Subscribe: RSS

Allscoop Technology

Gadgets - PHP Code - ASP Code - Web Tools - Technology

Blocking based on a specific IP with htaccess

on August 27, 2007 - 0 Comments
Categories: other stuff

Do you have a certain IP address or a (handful) that is always causing you problems on your site? Redirect them with this easy few lines of code in your .htaccess file. Replace the xx’s with the IP numbers.

RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^xx\.xx\.xx\.xx$ [OR]
RewriteCond %{REMOTE_ADDR} ^xx\.xx\.xx\.xx$
RewriteRule .* http://en.wikipedia.org/wiki/404_error [R,L]

Read more ยป

Share your thoughts..

  • subscribe by email

    Enter your email address:

  • Categories

    • allscoop
    • asp scripts
    • hardware
    • news
    • other stuff
    • php code
    • projects
    • shopping cart
    • software
    • technology
    • the web
    • tools
  • Blogroll

    • air quality test
    • cartridge helper
    • diabetes diary
    • law refs
  • Resources

    • blog directory
    • california directory
    • iraqi dinar
    • ohio business
    • quickutz silhouette
    • timeclock software
    • wiper blades
  • Pages

    • 1&1 Business Package Review
    • About AllScoop
  • About

    PHP-Code ASP-Code dot-NET-Code dot-NET-software Web-Tools


Copyright © 2010 Allscoop Technology