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?<
آخرین ویرایش توسط
نوشته شده در
Well, you COULD point him to cia.gov, fbi.gov, whitehouse.gov, or to dod.gov and see how long he stays online lol....<
نوشته شده در
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.<
نوشته شده در
Could simply use robots.txt and disallow your site from indexing altogether.<
نوشته شده در
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.
نوشته شده در
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?<
نوشته شده در
Use Session.Abandon to end the session.<
نوشته شده در
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>
نوشته شده در
نوشته شده در
آخرین ویرایش توسط
نوشته شده در
You could try something like
<
Code:
If InStr(Request.ServerVariables("REMOTE_ADDR"),"77.88.27") > 0 Then
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...