Blocking IPs |
Post Reply | Page <12 |
Author | |
Logistix
Newbie Joined: 30-July-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
How would I go about blocking an IP with the variable "Local_Addr" using your whole range method Hamish? The spam is coming from the same local IP each time.
RemAddr = Request.ServerVariables("Local_Addr")
If (RemAddr >= "x.x.x.x") and (RemAddr <= "x.x.x.x") Then Response.End End if This doesn't seem to work, any ideas?
|
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Hi Logistix,
Hmmm - I'm no great expert on this so I did a quick Google. According to the info I found:- LOCAL_ADDR : Returns the server address on which the request came in. I would understand that to mean that the address you would get from that is the server at your ISP that received the request - I would think this would always be the same for ALL traffic, legitimate or spam. If so then if you succeed you would you block your site off from the world (I guess that would block the site spammer !!!! ) Have I misunderstood this? |
|
Logistix
Newbie Joined: 30-July-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Sorry Hamish I mis-understood what Local_Addr does. It's the local IP of the server not of the workstation which made the request. My bad :) Is there a quicker way of blocking IPs if I want to block lots of ranges of IPs?
|
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Hi, there are several options, as always. It partly depends on how much updating it will require & how many ranges you want to block.
What are these miscreants doing? Are they trying to login to your site as Admin or Users? If so then an easier solution that will pretty much stop them in their tracks is to switch on the "captcha" images in :- Settings > Advanced Security Settings - Enable both the "Use random number images" options. It blocks pretty much every automated method of attacking the login pages and slows dramatically slows down manual attacks as they have to get the password right AND make sure they get the numbers from the image entered correctly. If you enable this the bad guys will most likely move on to fresh targets. |
|
Logistix
Newbie Joined: 30-July-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Check your Private Messages Hamish :)
|
|
Post Reply | Page <12 |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |