CODE |
ec1 // Check to see if user has been banned $bannedips = array('68.87.77.180','200.118.2.220','213.244.166.23'); $ip = $_SERVER['REMOTE_ADDR']; if(in_array($ip,$bannedips)){ die('Sorry, but you are banned'); } ?> c2 |
CODE | ||||
ec1if(substr(strtolower($input),0,4)=="ban "){ Post by: bfr on August 04, 2006, 10:21:00 am xlibman: I'm not exactly sure how Invisionfree bans IP addresses, but if it just uses a textbox with one IP address per line, this would work fine. Even if it doesn't work like that, you could still probably copy the IP addresses from http://bfr.awardspace.com/view.php?mode=normal and add them to your "Banned IP Addresses List" or whatever InvisiobFree uses. kalan_vod: Thanks :) ![]() Post by: tenniskid493 on August 04, 2006, 10:37:00 am Post by: bfr on August 04, 2006, 11:17:00 am I still think this project is kind of fun though, so I still might continue it...maybe somebody will find a use for it. Post by: DJ Omnimaga on August 04, 2006, 12:00:00 pm Post by: kalan_vod on August 06, 2006, 08:38:00 am
Np, can I submit my own? j/k Post by: bfr on August 07, 2006, 12:47:00 pm Also, the server that http://bfr.awardspace.com/badips.php was on was being upgraded earlier today, so http://bfr.awardspace.com/badips.php was inaccessable during that time period, but it should work fine now. Post by: DJ Omnimaga on August 08, 2006, 11:40:00 am Post by: bfr on August 08, 2006, 02:26:00 pm jk :D ![]() Post by: DJ Omnimaga on August 08, 2006, 02:43:00 pm Post by: tenniskid493 on August 08, 2006, 03:54:00 pm JK :) ![]() Post by: DJ Omnimaga on August 09, 2006, 01:40:00 am ![]() Post by: bfr on August 09, 2006, 10:34:00 am 233.55.54.* After I add that, I'm going to add another view mode that doesn't display IP addresses with wildcards, for convience of PHP coders or other people that don't use IP addresses with wildcards. Post by: DJ Omnimaga on August 09, 2006, 10:45:00 am ![]() Post by: bfr on August 09, 2006, 01:59:00 pm Post by: DJ Omnimaga on August 09, 2006, 02:09:00 pm and maybe even have custom message for each ppl Post by: bfr on August 09, 2006, 02:27:00 pm
Are you saying I should have it generate the code to ban selected IP addresses and then display a custom ban message? I could do that I suppose do that, but it seems as if you misunderstood what this is. It's just supposed to be a list of IP addresses of spambots and trounle-makers that nobody wants visiting their website(s). Then users of this on their own can add it to their "Banned IPs" list or whatever on their forums, or create their own IP banning code, or something like that. Post by: DJ Omnimaga on August 09, 2006, 02:32:00 pm again sorry Post by: bfr on August 09, 2006, 02:35:00 pm Post by: bfr on August 10, 2006, 06:20:00 am Post by: DJ Omnimaga on August 10, 2006, 06:25:00 am Post by: bfr on January 04, 2007, 06:28:00 am http://bfr.tifreakware.net/badips.php If you have a bad IP, then give it to me. :) ![]() The next feature that I plan to add is multiple IP submitting, and then after that, a good administration panal, because I don't have access to PHPMyAdmin. EDIT: I finished the administration panal, oddly before allowing multiple IP addresses to be submitted. If anybody is interested in helping my manage the database, just PM me. It isn't very hard; just check the database every once in a while to make sure there isn't spam. |