SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Access Control List

    Hi friends,
    Recently i have set up a local communication. We are able to send radio frequency signal. But in the mean time i want to restrict some ip address from some specific host. Without apply access control list we want to do this job. Please guide me.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    wiw,

    The simplest way to deal with this (IP address from specific hosts) is to use mod_rewrite to either block the "offending" IP address(es) or simply to allow the ones you wish to have access (and FAIL) all others. Actually, Allow/Deny statements would be better suited (as they are part of Apache's core directives).

    Code:
    <Files .*>
    	order allow,deny
            allow from 192.168.0. # all in the LAN block
    	deny from all
    </Files>
    At least you now have a place to start.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •