.htaccess Is this right?

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

  1. #1
    I recently posted about my problem with blocking IP's so that my site will not show if being brows in i.e (certain IP) and i got lots of informations from those guys who response... thanks :) I did their advice to use .htaccess and i did the following below

    sample:

    Order Deny,Allow
    Deny from 123.456.789.111
    allow from all

    i test it to my own ip and see if it works but unfortunately it doesnt. when i typed my url on the address bar it still shows. i save the file as .htaccess and save to my wwww/mydomain.com folder is this right?

    Please help :(

    thanks in advance.
     
    mj2, Jul 27, 2007 IP
  2. Tearabite

    Tearabite Prominent Member

    Messages:
    4,628
    Likes Received:
    429
    Best Answers:
    0
    Trophy Points:
    300
    #2
    that looks right..
    are you sure you're saving it as .HTACCESS and not .HTACCESS.TXT ?
     
    Tearabite, Jul 27, 2007 IP
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    <Limit GET POST>
    order allow,deny
    allow from all
    deny from 12.154.217
    deny from 168.103.49
    </Limit>

    If it's a visitor, I take off the last number, since that can easily change. You never wanna ban AOL or WebTV users, or you might end up banning a LOT of people!!!
     
    Nintendo, Jul 27, 2007 IP
  4. vipin_lalla

    vipin_lalla Banned

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    check it had u saved it as .htaccess
     
    vipin_lalla, Jul 28, 2007 IP