.htaccess please help :)

Discussion in 'AdSense' started by mj2, Jul 31, 2007.

  1. #1
    I'm not familiar in .htaccess can i combine blocking ip and domain? can i use this patern?


    order allow,deny
    deny from 123.45.67.
    deny from 3w.theirdomain.com
    allow from all


    or i need to separate the two like this format?


    order allow,deny
    deny from 123.45.67.
    allow from all

    order allow,deny
    deny from 3w.theirdomain.com
    allow from all


    Please advice... thanks in advance :)
     
    mj2, Jul 31, 2007 IP
  2. NineFingers

    NineFingers Peon

    Messages:
    180
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    First pattern should work just fine.
     
    NineFingers, Jul 31, 2007 IP
  3. godmode

    godmode Well-Known Member

    Messages:
    4,453
    Likes Received:
    156
    Best Answers:
    0
    Trophy Points:
    190
    #3
    i second that first one is OK
     
    godmode, Jul 31, 2007 IP
  4. sakib000

    sakib000 Active Member

    Messages:
    415
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    58
    #4
    sakib000, Jul 31, 2007 IP
  5. mick_milo

    mick_milo Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can I put this code into the directorium whois not ROOT but subdirectorium, for exemple:...root/video/?

    I want to block bandwidth stealing.....
     
    mick_milo, Jul 31, 2007 IP
  6. sakib000

    sakib000 Active Member

    Messages:
    415
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    58
    #6
    yes, you can
     
    sakib000, Jul 31, 2007 IP