Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: bfr on August 03, 2006, 06:19:00 am

Title: "Bad" IP Addresses
Post by: bfr on August 03, 2006, 06:19:00 am
I'm working on something that lets users add IP addresses to a database of "bad" IP addresses.  These IP addresses will be the IP addresses of spambots and troublemakers that nobody wants in the community.  Then, users can view the IP addresses normally or in the form of a PHP array, for PHP coders, so they can do something like:

c1-->
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
ec2

The URL to this is http://bfr.awardspace.com/badips.php

It isn't done yet, but it hopefully will be done soon.  Also, I know the design of the page isn't too good, but I'll try to take care of that later.

EDIT:  The new address is at http://bfr.tifreakware.net/badips.php
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 03, 2006, 06:21:00 am
hmm i dont really get the concept, is it like a report ip form and the admin ban it?
Title: "Bad" IP Addresses
Post by: bfr on August 03, 2006, 06:21:00 am
It is so that there is a list of "bad" IP addresses of spambots and troublemakers that people in the community can add to their "banned IP addresses" list.  
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 03, 2006, 06:23:00 am
i c, sound cool
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 03, 2006, 06:59:00 am
btw due to UTI server downtime the images for the edit/delete/report button are down so it is impossible to edit posts until the server come back online
Title: "Bad" IP Addresses
Post by: kalan_vod on August 03, 2006, 07:03:00 pm
I say something similar before on a p2p program, where it had bad ips of RIAA or such :Ptongue.gif. Sounds really cool though.
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 04, 2006, 09:51:00 am
Invisionfree doesnt suppoer PHP so it would be helpless for me but i could put it on pages like the irc chats for when the forum ban settings doesnt work
Title: "Bad" IP Addresses
Post by: Demon on August 04, 2006, 10:20:00 am
I got something like that in my chat script on my site.

c1-->
CODE
ec1if(substr(strtolower($input),0,4)=="ban "){

 
Title: "Bad" IP Addresses
Post by: bfr on August 04, 2006, 10:21:00 am
Right now, it is usable, but the its design doesn't really look good, and I still didn't add support to add multiple IP addresses at the same time.

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 :)smile.gif
Title: "Bad" IP Addresses
Post by: tenniskid493 on August 04, 2006, 10:37:00 am
There is a massive list somewhere..I think it was on the Invisionfree support form...where tons of users compiled their lists of all the ips they had banned.
Title: "Bad" IP Addresses
Post by: bfr on August 04, 2006, 11:17:00 am
Oh well, I guess I can just abort this project....

I still think this project is kind of fun though, so I still might continue it...maybe somebody will find a use for it.
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 04, 2006, 12:00:00 pm
submitted 2 ip addresses (old spambots)
Title: "Bad" IP Addresses
Post by: kalan_vod on August 06, 2006, 08:38:00 am
QuoteBegin-bfr+Aug 4 2006, 04:21 PM-->
QUOTE (bfr @ Aug 4 2006, 04:21 PM)
kalan_vod:  Thanks :)smile.gif

 Np, can I submit my own? j/k
Title: "Bad" IP Addresses
Post by: bfr on August 07, 2006, 12:47:00 pm
I added some IP addresses, and made it so that IP addresses are validated, so somebody can't add "TB#$(" to the IP addresses list.

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.
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 08, 2006, 11:40:00 am
i c, *xlibman
Title: "Bad" IP Addresses
Post by: bfr on August 08, 2006, 02:26:00 pm
I only added IP addresses of staff members I have grudges against (one of them is you)....

jk  :Dbiggrin.gif
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 08, 2006, 02:43:00 pm
:cry:
Title: "Bad" IP Addresses
Post by: tenniskid493 on August 08, 2006, 03:54:00 pm
LOL...I added bfr's ip

JK :)smile.gif  That would be pretty funny though to be banned from your own thing.
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 09, 2006, 01:40:00 am
lol indeed he could use a proxy then to access it tho ;)wink.gif
Title: "Bad" IP Addresses
Post by: bfr on August 09, 2006, 10:34:00 am
I'm going to try to get around to adding wildcards, so you could submit an IP address like:

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.
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 09, 2006, 10:45:00 am
aah I c, cool :)smile.gif
Title: "Bad" IP Addresses
Post by: bfr on August 09, 2006, 01:59:00 pm
Does anybody know of any other features they'd like to see (btw I'm already going to add multiple IP address submitting)?
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 09, 2006, 02:09:00 pm
what about custom ban reason message, liek make it says "you were banned from this website for rule violation" or stuff like this
and maybe even have custom message for each ppl
Title: "Bad" IP Addresses
Post by: bfr on August 09, 2006, 02:27:00 pm
QuoteBegin-xlibman+Aug 9 2006, 08:09 PM-->
QUOTE (xlibman @ Aug 9 2006, 08:09 PM)
what about custom ban reason message, liek make it says "you were banned from this website for rule violation" or stuff like this
and maybe even have custom message for each ppl

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.
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 09, 2006, 02:32:00 pm
sry if I offended in any way again with my post, it seems everything i say is wrong... I actually meant that and didnt meant to be bad, I just thought it would be a nice addon you dont need to add it its just a suggestion

again sorry
Title: "Bad" IP Addresses
Post by: bfr on August 09, 2006, 02:35:00 pm
No nead to apologize; I wasn't offended.  I just wasn't exactly sure what you meant in your post.
Title: "Bad" IP Addresses
Post by: bfr on August 10, 2006, 06:20:00 am
I just added support for IP addresses with wildcards.  Only the last two numbers of the IP address can use wildcards, so somebody can't submit *.*.*.* or something like that ("*" is used to indicate a wildcard).
Title: "Bad" IP Addresses
Post by: DJ Omnimaga on August 10, 2006, 06:25:00 am
cool, btw I think one more IP is gonna make it to this form (remember that spambot this morning?)
Title: "Bad" IP Addresses
Post by: bfr on January 04, 2007, 06:28:00 am
The old host was...bad, so my Bad Ips thing wasn't working for a while.  tifreak8x kindly let me have a subdomain a TI Freak Ware, so it't up-and-runnning again.

http://bfr.tifreakware.net/badips.php

If you have a bad IP, then give it to me.  :)smile.gif

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.