Blocking IPs using HTML code

Discussion in 'PHP' started by cham, Apr 5, 2010.

  1. #1
    Hi there, I'm completely code illiterate - I use a CMS for my website. I have had a few nuisance hits and they are increasing. I'm wondering if there is a basic html code I can input to block a range of specific IP addresses?

    What would be the exact code I would need to input into the html code section?

    Many thanks.
     
    cham, Apr 5, 2010 IP
  2. Fervid

    Fervid Well-Known Member

    Messages:
    161
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    There's no HTML that will block an IP address. If you're on a Linux or UNIX server, look into .htaccess.
     
    Fervid, Apr 5, 2010 IP
  3. angelomaniac

    angelomaniac Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    or use PHP
     
    angelomaniac, Apr 5, 2010 IP
  4. globalprompt@gmail.com

    globalprompt@gmail.com Active Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #4
    I guess we can not do that
     
    globalprompt@gmail.com, Apr 6, 2010 IP