.HTACCESS Generator to Restrict/Allow by IP Address

Restrict by IP address

You can use .htaccess to ban or allow access to your web site by IP address.
See guidelines on the right.

List IP addresses. List one IP address per line.

I want to .

Deny browser access to generated .htaccess file. This is only needed if:
  • Your .htaccess file is in a web accessible directory
  • Your server isn't configured to disable browser access to .htaccess. (this is not common)

Valid IP Addresses

IP addresses are in the form xxx.xxx.xxx.xxx and each of these four numbers is from 0-255.
You can enter partial addresses to restrict larger blocks of addresses:

1.2.3.4 Blocks one specific IP address
1.2.3. Blocks IP address in the range 1.2.3.0 to 1.2.3.255 (ie.. 1.2.3.xxx)
1.2. Blocks IP address in the range 1.2.xxx.xxx
1.2 Blocks IP address in the range 1.2xx.xxx.xxx

Your IP address is 38.107.179.210

Be careful when blocking blocks of IPs as you might be blocking legitimate traffic!

838 page views since Jul 2011.

Tom Nunamaker's Blog Follow me on Twitter
Follow me on Twitter
.
I tweet about the Euro/USD and
Economic News related for traders.

Home  |   Email and Web Hosting  |   Lat/Lon Lookup  |   Link Builder  |   Math
Image Resizing Calculator  |   Naked Option Margin Calculator  |   Web Form Generator
Tweet This!  |   Webpage Title, Description and Keywords
Line Calculator  |  Build WebEx Event Email  |  .htaccess Generator
Longtail Video JW Player 5 Embed Code Generator  |  Spin Text Formatter
Make Your Email Address Web Safe  |  Mobile Website Viewer

Copyright © 1996-2012, All rights reserved. Tom Nunamaker