Lodius2000 Posted January 26, 2009 Share Posted January 26, 2009 what type of validations can I do on $_SERVER['REMOTE_ADDR']... I am thinking of putting a new user ip in my users table on my db for banning purposes, and dont know what I should validate. that is other than a regex validation to make sure it is the right format Quote Link to comment Share on other sites More sharing options...
premiso Posted January 26, 2009 Share Posted January 26, 2009 IP is not a good thing to ban. If a person is on a network, it will ban anyone on that network. That and proxies would get around the ban. Basically IPs are not unique to an individual. Quote Link to comment Share on other sites More sharing options...
Lodius2000 Posted January 26, 2009 Author Share Posted January 26, 2009 so is username the best ban method... just have to stay on top of it that way, or is there a better way to ban a person so that they cant continue register accounts// I am thinking would be a ban table that has usernames and ips, and say more than 3 usernames banned with the same ip and the ip is now banned, chances of 3 people from the same office being banned are much slimmer than one a-hole spamming/offending like crazy and continuing to register accounts for free Quote Link to comment Share on other sites More sharing options...
premiso Posted January 26, 2009 Share Posted January 26, 2009 Welcome to world of Websites. You can ban a username, but what keeps them from creating a new account. You can ban the email addr, but whats to stop them from changing emails. You can ban an IP but what is to stop them from logging on via a different location or creating a new account different location or even just using a proxy. You could set a cookie on their computer, but once they clear cookies they are allowed back in... Just ban the username, and hope they are not smart enough to get around the ban. If they are, well you just keep on banning. Not much help, but that is where it lays, you are stuck between a rock and a hard spot with everyone else. Quote Link to comment Share on other sites More sharing options...
Lodius2000 Posted January 26, 2009 Author Share Posted January 26, 2009 i hear yah Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.