How do I block a specific IP address??

Discussion in 'Site & Server Administration' started by Seobiznezz, May 21, 2007.

  1. #1
    I have a person copying content from my site big time and want to block them from accessing it.

    I know their IP address as I have a spy program inbedded within the site.

    I blocked an IP before but can't remember how. Please help before they steal it all.
     
    Seobiznezz, May 21, 2007 IP
  2. GMROCKS

    GMROCKS Active Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #2
    do it with PHP

    (they can still get past your site with a proxy)
     
    GMROCKS, May 21, 2007 IP
  3. Davidj

    Davidj Peon

    Messages:
    124
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Seobiznezz,

    If your server is utilizing apache you can do so by adding the following your .htaccess file:

    order allow,deny
    deny from 127.0.0.1
    allow from all

    Replace 127.0.0.1 with the IP of the user of course.
    Enjoy!
     
    Davidj, May 21, 2007 IP
  4. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #4
    OR if you have dedicated server under Linux, you can do so by adding the IP to global deny list of IPTables
     
    inworx, May 21, 2007 IP
  5. ellict

    ellict Peon

    Messages:
    91
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    use server variable in asp, redirect them to other destination
     
    ellict, May 22, 2007 IP
  6. Juan Pablo Olivera

    Juan Pablo Olivera Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
  7. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Use firewall and get rid of these htaccess files. They block only from accessing particular site, not whole server. Kick them from whole server...;)
     
    inworx, May 23, 2007 IP