Author Topic: "Bad" IP Addresses  (Read 11642 times)

0 Members and 1 Guest are viewing this topic.

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
"Bad" IP Addresses
« 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
"Bad" IP Addresses
« Reply #1 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?

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
"Bad" IP Addresses
« Reply #2 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.  

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
"Bad" IP Addresses
« Reply #3 on: August 03, 2006, 06:23:00 am »
i c, sound cool

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
"Bad" IP Addresses
« Reply #4 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

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
"Bad" IP Addresses
« Reply #5 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.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
"Bad" IP Addresses
« Reply #6 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

Demon

  • Guest
"Bad" IP Addresses
« Reply #7 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 "){

 

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
"Bad" IP Addresses
« Reply #8 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

tenniskid493

  • Guest
"Bad" IP Addresses
« Reply #9 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.

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
"Bad" IP Addresses
« Reply #10 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.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
"Bad" IP Addresses
« Reply #11 on: August 04, 2006, 12:00:00 pm »
submitted 2 ip addresses (old spambots)

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
"Bad" IP Addresses
« Reply #12 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

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
"Bad" IP Addresses
« Reply #13 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.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
"Bad" IP Addresses
« Reply #14 on: August 08, 2006, 11:40:00 am »
i c, *xlibman