Basket Checkout My Account
domain name registration
Home Domains Email Web Hosting Web Design SE Submit E-Marketing News WHOIS Prices FAQ Contact
Web Design Articles Need help? 01952 684 582
explanations - definitions - answers
domain buy
bronze web hosting package
domain transfer

Web Design Articles:
  • Good web design
  • IFRAME
  • Accepting Payments
  • Design Checklist
  • MIME Types
  • 404 Error Pages
  • Automatic Redirection
  • Web Design Basics
  • CSS Basics
  • 7 things to avoid
  • Importance of Titles
  • Optimize Graphics
  • Minimalist
  • PHP
  • Website Navigation
  • SSL
  • Plan then design
  • Designing to be popular
  • 10 quick tips
  • Confirmation Pages
  • Using PDF's
  • Printer-Friendly
  • Site Maps
  • Safe Fonts
  • Search Funtionality
  • Planning
  • SSI
  • Protecting your code
  • Visual design
  • 8 Tips
  • Tweaks
  • Recreating your site
  • XHTML validation
  • Sitemaps
  • Using Colour
  • Dream Site
  • Accessablility
  • MySQL data types
  • Why frames are bad
  • Page Length
  • Good Navigation
  • Deny IP
  • Frames
  • Hotlinks
  • htaccess
  • Password Protection
  • Mod Rewrites
  • CSS Positioning
  • Smart Design

  • 1

    Domain Names Articles
    Webhosting Articles
    Search Engines Articles
    Emarketing Articles
    Web Design Articles


    Deny IP

    This will allow you to cancel visitor access from a specific IP. An IP is a special code number that is assigned to each web surfer when they log onto the internet.

    Now when you are looking at putting a block to that in the htaccess, the coding would be :

    order allow,deny deny from 0.0.0.0 allow from all The first line tells the htaccess what you want to specify.

    The second line would cancel a single, specific IP. This could be close to useless though considering dialup customers usually get a different IP every time they log on. Direct connection users may have one or two different IPs depending on their account.

    You could take the banning one step further to include a full "block" of IPs, but this would cancel the abilities of anyone else in the same area from accessing your section. To do this though, just leave off the last digits (keep the last period on).

    The third line allows access to everyone else.

    The access/ban can also use a domain name in place of the IP numbers. If htmlite.com was an Internet Provider, you would be able to allow (or deny) access by doing something like this : order allow,deny deny from .htmlite.com allow from all

    If a banned visitor tries to access the specified location (where the htaccess file is located) they will be seeing the 403 Forbidden Access Error Page.

    If you want to deny everyone from accessing a directory (but still allow scripts and files to be used), then you can enter the deny from all code line.

    This could be useful to put into an image directory so someone cannot access that specific directory listing directly.

    Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.

    You can reprint this article (if not stated otherwise above) on your website or publication with notice "Reprinted from Zongoo! Computers".

    Nominet member pay by visapay by mastercardpay by solo
    pay by switchpay by deltapay by visa electron
    pay by jcbpay using worldpay
    Domain Names Articles       Webhosting Articles       Search Engine Articles       Emarketing Articles       Web Design Articles
    Domain Resources      Web Hosting Resources      Search Engine Resources      Emarketing Resources      Web Design Resources
    Privacy ¦ Terms  ¦ Glossary ¦ Archives ¦ Sitemap ¦ index© 2004 Discount Domains Ltd¦ Webmaster Resources