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.
Last Edit: Aug 28, 2006 11:49:11 GMT -5 by coldstone
Post by petefinnigan on Aug 29, 2006 4:03:53 GMT -5
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?
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.