Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Help with IIS8 IP Address and Domain restrictions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bobby131313
Senior Member

USA
1162 Posts

Posted - 09 December 2020 :  22:47:25  Show Profile  Visit bobby131313's Homepage  Reply with Quote
So, I have this rogue bot from Germany that doesn't identify itself. It spoofs the user agent pretends to be a normal user. Unfortunately it's also clicking ads. The block is always 185.220.*.*

So best i can tell googling, I've added it correctly.....



However as you can see it still gets in (been several days since I added it)...



Any ideas what I might have done wrong?

Switch the order of your title tags

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 11 December 2020 :  18:27:53  Show Profile  Visit HuwR's Homepage  Reply with Quote
This IP is owpned by the torproject

https://stackoverflow.com/questions/9780038/is-it-possible-to-block-tor-users

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

bobby131313
Senior Member

USA
1162 Posts

Posted - 20 December 2020 :  19:56:08  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Thanks Hu.

But how is it still getting in when it's supposed to be blocked? Did I do it wrong?

Switch the order of your title tags
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 21 December 2020 :  08:28:18  Show Profile  Visit HuwR's Homepage  Reply with Quote
looks ok to me, did you restart IIS after making the change?

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

bobby131313
Senior Member

USA
1162 Posts

Posted - 21 December 2020 :  13:47:43  Show Profile  Visit bobby131313's Homepage  Reply with Quote
No I didn't. I take it that' required?

Switch the order of your title tags
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 21 December 2020 :  17:58:34  Show Profile  Visit HuwR's Homepage  Reply with Quote
No idea, but worth a try

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

bobby131313
Senior Member

USA
1162 Posts

Posted - 21 December 2020 :  19:35:21  Show Profile  Visit bobby131313's Homepage  Reply with Quote
I checked Event Viewer and there is no history of it ever being restarted. I just did it. We'll see. Thank you.

Switch the order of your title tags

Edited by - bobby131313 on 21 December 2020 19:51:06
Go to Top of Page

Carefree
Advanced Member

Philippines
4191 Posts

Posted - 16 February 2021 :  21:05:03  Show Profile  Reply with Quote
If the IP address block always starts with 185.220, you can stop it in ASP if you wish. In inc_header.asp, just above the line:

if strshowtimer = 1

Add this, they'll get sent back to their own computer every time they connect:

If Left(Request.ServerVariables("Remote_Addr"), 7) = "185.220" Then Response.Redirect "http://127.0.0.1"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2019 Snitz™ Communications Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.07