Author |
Topic |
|
dave9737
Starting Member
2 Posts |
Posted - 07 March 2007 : 10:53:59
|
Is there a way to do this? I have one nutty person I'd like to keep off the forums.
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
dave9737
Starting Member
2 Posts |
Posted - 08 March 2007 : 02:20:42
|
What is IPGate? |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
gary b
Junior Member
USA
267 Posts |
Posted - 26 March 2007 : 09:45:13
|
For another approach, you can edit the REGISTER.ASP page as follows:
'#### Added IP blocking Lines 273 to 292
Dim strIP,strLeftIP,strLeftIPbig strIP = Request.ServerVariables("remote_addr") strLeftIP = Left(strIP,10) strLeftIPbig = Left(strIP,14)
If strLeftIPbig = "86.102.192.206" Then Err_Msg = Err_Msg & "<li>You have been identified as an idiot. SFB does not accept registration by idiots.</li>" end if
If strLeftIP = "86.102.192" Then Err_Msg = Err_Msg & "<li>Your request for registration is DENIED!</li>" end if
strLeftIPbig is set to the IP address of the offender. (Look at table FORUM_MEMBERS with IP Logging turned on!)
strLeftIP is set for the first three octets of the IP address. This will block any addresses on that sub-net. (Including possibly innocent by-standers)
Adjust the numerical value [of the expression] to equal the total number of digits AND periods in the IP segment -- see bold blue above for example.
In my implementation, I used descriptive terms other than 'idiot'.
I call this file edit "porn-no-more"
Email me if you have questions: sfrvn at earthlink.net
gary b
Edit: This procedure should be adaptable to email addresses, as well. |
Edited by - gary b on 26 March 2007 11:51:30 |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 26 March 2007 : 12:08:30
|
Problem is, the IP you block may belong to a bunch of users of ISPs who suck (like AOL) - or if they are dial-up users they may not have the same IP. Its the same issue that's come up in discussions about the IPGate MOD. At least with that MOD you have the option to set a cookie, which they may or may not find, and will keep them busy even if they do change their IP...
Just some food for thought. A more thorough discussion of this and related topics has been had numerous times, and is readily found using the nifty "search" link at the top of the page. |
|
|
gary b
Junior Member
USA
267 Posts |
Posted - 26 March 2007 : 12:52:56
|
Thanks, Anon...
I had searched for this issue and found many 'holes' -- regardless of the method used. One suggetion was to ignore them and they might go away. Well, that was not acceptable.
In this case the IP is located in the Netherlands, according to RIPE. Our forum is targeted for a specific audience and there is virtually zero probability that a potential User will have an IP on that subnet. So the forum owner felt 'safe' in blocking both the specific IP and the subnet. (If the idiot has DHCP, then his IP might change. Hence, the use of the subnet blocking.)
The beauty of this approach is its simplicity. But I do not claim this simple edit is foolproof... nor do I claim it is suitable in all instances. A forum Admin must put it in perspective of their prospective audience. But if you do have one or two 'idiots', it is better than waiting to see if they go away!
gary b
|
|
|
|
Topic |
|