filter traffic

Posted on 2012-09-18
Last Modified: 2012-10-04
I have a dedicated ip address which gets traffic from

every 30 minutes for multiple domain names which I do not own

how to block this traffic


without writing letter/email to domain owner
Question by:rgb192
    LVL 26

    Accepted Solution

    Not sure what you mean.
    If you want to disallow the search bots, both google and bing will comply to a disallow directive in a robots.txt.

    If it's some other site, you could redirect from your masterpage to a 403 page (forbidden), 403.6 is good, (client IP rejected).
      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
          Dim strReferrer As String = context.Request.UrlReferrer.ToString().ToLower()
          If InStr(strReferrer, "experts-exchange.", CompareMethod.Text) > 0 Then
            ' 403.6 - Forbidden: IP address of the client has been rejected.
            Response.Redirect("~/403-6.aspx", False)
          End If
        Catch ex As Exception
        End Try
      End Sub

    Open in new window


    Author Comment

    where do I put this script

    in what folder

    Author Closing Comment

    although I can not implement this

    it probably works

    thank you

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now