Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Location
    In canada
    Posts
    3,213

    Need help, need to hardcode APACHE to deny request to particular domain

    Hello,
    I am seeking a solution such that the apache vs 2 denies php or allowing requests out of the server to say domain abc.com and its entire IP block.


    I have done so far is used apf -d abc.com to deny outgoing and incoming requests and the php pages (proxies) cannot access the site anymore).

    But what i want it something hardcoded into apache itself so it blocks all php based request going off the server to that domain.

    How can i go about it ?

    PS: using centos5 apache 2 and cpanel !!

    Cheers

  2. #2
    Join Date
    Jan 2006
    Location
    Athens, Greece
    Posts
    1,479
    Hey Bunny, I think this should be:

    <Files ~ "\.php$">
    Deny from 192.168.1.0/24
    </Files>

    or

    <FilesMatch "^\.php">
    Deny from 192.168.1.0/24
    </FilesMatch>

  3. #3
    Join Date
    Sep 2005
    Location
    In canada
    Posts
    3,213
    Hmm will give it a shot Steve

Posting Permissions

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