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?<
Sist redigert av
Postet den
Well, you COULD point him to cia.gov, fbi.gov, whitehouse.gov, or to dod.gov and see how long he stays online lol....<
Postet den
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.<
Postet den
Could simply use robots.txt and disallow your site from indexing altogether.<
Postet den
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.
Postet den
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?<
Postet den
Use Session.Abandon to end the session.<
Postet den
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>
Postet den
Postet den
Sist redigert av
Postet den
You could try something like
<
Code:
If InStr(Request.ServerVariables("REMOTE_ADDR"),"77.88.27") > 0 Then
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...