Results 1 to 2 of 2

Thread: Locking A Website

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Location
    Cheshire, England
    Posts
    116

    Locking A Website

    is their a way to stop a particular ip adress from viewing my web site or forward the user to another page, and keep him from accessing my site in anyway
    --- Counter-Terrorists Win ---

    http://manix.pax3k.co.uk
    www.manix-creations.net

  2. #2
    In HTML no way. In Javascript possibly. In JSP:
    Code:
    if (request.getRemoteAddr().equals("1.2.3.4"))
    {
        out.write("PISS OFF!");
        return; // parse nothing else
    }
    In PHP:
    Code:
    if ($REMOTE_ADDR == "1.2.3.4")
    {
        echo 'PISS OFF!';
        exit; // parse nothing else
    }

Posting Permissions

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



Click Here to Expand Forum to Full Width