How to Ban an IP Address?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Victor

    How to Ban an IP Address?

    Is it possible to ban an IP address from global.asa, or by another method?

    On a shared server, I'm seeing someone from China that appears to be trying to access my
    site illegally (trying to access server root via cgi-bin).

    Can I test for the user from global.asa and then execute a Response.End? Or is there
    another way?

    Thanks!



  • Evertjan.

    #2
    Re: How to Ban an IP Address?

    Victor wrote on 24 sep 2006 in microsoft.publi c.inetserver.as p.general:
    Is it possible to ban an IP address from global.asa, or by another
    method?
    see below
    On a shared server, I'm seeing someone from China that appears to be
    trying to access my site illegally (trying to access server root via
    cgi-bin).
    Why would that be illegal?

    It is only illegal, if the "perpetator " is acting illegally according to
    the laws in his or her country.
    Can I test for the user from global.asa and then execute a
    Response.End? Or is there another way?
    You could test in session_onstart :

    <%
    q = request.serverv ariables("remot e_addr")
    If q = "123.456.789.12 3" then Session.Abandon :Response.End
    %>


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Justin Piper

      #3
      Re: How to Ban an IP Address?

      On Sun, 24 Sep 2006 11:11:35 -0500, Victor <vic@vic.comwro te:
      Is it possible to ban an IP address from global.asa, or by another
      method?
      IIS can be configured to deny connections by IP address.

      Configure IP Address and Domain Name Restrictions (IIS 6.0)


      --
      Justin Piper
      Bizco Technologies
      We help businesses optimize efficiency with information technology, audio-visual, and mobility solutions through predictable pricing and dependable support.

      Comment

      Working...