|
Post by coldstone on Aug 25, 2006 11:10:12 GMT -5
As I am banning spammers from my own gm site, I noticed that each banned ip list entry uses the form "ip/ip (label)".
I was wondering if anyone knew why it shows as 'ip/ip'? The entry box is too short to actually enter in an two ips, so I was confused as to why it shows the same ip after the first?
If anyone know off hand, it would be cool to know, otherwise I gotta dig through the code and see if it even uses that second ip.
|
|
|
Post by petefinnigan on Aug 26, 2006 16:50:27 GMT -5
Hi Coldstone,
I am not absolutely certain without looking through the source but I think from memory the two IP addresses were to set a range to ban?
cheers
Pete
|
|
|
Post by coldstone on Aug 28, 2006 11:47:12 GMT -5
Yeah, I was digging around that code this weekend (part of the 'remove direct references to files' task) and its refered to in the code as 'iphost', but I didn't see it being used to match anything. I could have missed something, but I wonder if it was a 'in the future' thing, that would check ip and domian name? But seems like the host name would be the host the gm software was running on. I wonder what ENV var it was looking for? Right now the code just takes whatever ip you give it and uses that for the second value.
For the range, it does a loose matching so if you want you can enter partial ips (I should be adding this to the revised documentation). E.g. if I enter in 127. for a banned ip, all addresses containing 127. will be banned.
|
|
|
Post by petefinnigan on Aug 29, 2006 4:03:53 GMT -5
Hi Coldstone, I have done some digging also and found gm-banlist.cgi ... what it all means.. This seems to suggest that you can ban a host (only by IP) who maybe hosts multiple websites or customers. At the end of the day I was wrong, its not a range but just another IP address. As ypu say we have ranges through partial IP addresses. This is fine but not a true range and probably would not be useful in real life as you would ban valid visitors as well. maybe we need to add this info to the cookbook and also implement ban ranges? cheers Pete
|
|
|
Post by coldstone on Sept 5, 2006 11:11:19 GMT -5
Yeah, the current range is not granular enough. You could do 100.100.100.2 and then block .200 to .299 but what I would really like is a 'Delete and Ban' button for taking out comments. I have that on my todo list.
|
|
|
Post by petefinnigan on Sept 5, 2006 15:48:46 GMT -5
Hi Coldstone.
This is the mod I am working on, to queue all comments for a moderator to either allow or to delete. I could add the facility to auto-ban commentors IP as well. Good idea!
cheers
Pete
|
|