The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
I have this darn Yandex bot chewing up about 6GB a month in bandwidth indexing my site for an all Russian search engine. First let me say... duh.
Second, I found this global.asa code doing a Google search...
<script language="VBScript" RUNAT="SERVER">
Sub Session_OnStart
If Request.ServerVariables("REMOTE_ADDR") = "77.88.27.25" Then
Response.Redirect "http://www.yandex.com/"
End If
End Sub
</script>
Supposedly this will redirect this guy right back to itself.
What do you guys think? Look good? Is there a better solution?<
Second, I found this global.asa code doing a Google search...
<script language="VBScript" RUNAT="SERVER">
Sub Session_OnStart
If Request.ServerVariables("REMOTE_ADDR") = "77.88.27.25" Then
Response.Redirect "http://www.yandex.com/"
End If
End Sub
</script>
Supposedly this will redirect this guy right back to itself.
What do you guys think? Look good? Is there a better solution?<
Last edited by bobby131313 on 18 June 2008, 16:03
Posted
Well, you COULD point him to cia.gov, fbi.gov, whitehouse.gov, or to dod.gov and see how long he stays online lol....<
Posted
Why do it in global.asa? Want to stop him from accessing the all the site altogether and not just the forum?
You could also end the session, no reason to have one more session wasting server memory.<
You could also end the session, no reason to have one more session wasting server memory.<
Posted
Could simply use robots.txt and disallow your site from indexing altogether.<
Posted
Originally posted by CarefreeThat only works if the browser respects the robots.txt file - unfortunately not all do.<
Could simply use robots.txt and disallow your site from indexing altogether.
Posted
You could also end the session, no reason to have one more session wasting server memory.
That sounds awesome. How do I go about doing that?<
Posted
Use Session.Abandon to end the session.<
Posted
Like so? ....
<
Code:
<script language="VBScript" RUNAT="SERVER">
Sub Session_OnStart
If Request.ServerVariables("REMOTE_ADDR") = "77.88.27.25" Then
Session.Abandon
End If
End Sub
</script>
Posted
Posted
Last edited by bobby131313 on 19 June 2008, 11:07
Posted
You could try something like
<
Code:
If InStr(Request.ServerVariables("REMOTE_ADDR"),"77.88.27") > 0 Then
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...