• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

filter traffic

I have a dedicated ip address which gets traffic from
googlebot
bingbot

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

how to block this traffic

iis7

without writing letter/email to domain owner
0
rgb192
Asked:
rgb192
  • 2
1 Solution
 
Alan WarrenCommented:
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

    Try

      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

Alan
403-6.aspx
0
 
rgb192Author Commented:
where do I put this script

in what folder
0
 
rgb192Author Commented:
although I can not implement this

it probably works

thank you
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now