Announcement

Collapse
No announcement yet.

[Request]Program to get someones IP.

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Request]Program to get someones IP.

    Can someone make me a program that they have to register for my forum and when they do, I get therye IP adress, NOTE: my forums isnt built on VB so I need a program that I can upload to my webspace, someone can register and Username and then the Username is emailed to TheSkunkRulezUT@yahoo.com and The Username and IP Adress is shown there. Like this:
    Code:
    Username: There username here
    IP: And there IP
    So when they make me mad, I can ban there IP so they cant come to the website. Thanks.

    P.S. I really need this. Forums are here

  • #2
    1. Drop the [request] - it serves no purpose other than to annoy the natives
    2. You're not even running vB, so it wouldn't be a code hack...

    Comment


    • #3
      Sorry ed. Can you tell me the .php to get someones IP in vbulletin though?? I really sorry. Thanks ed.

      Comment


      • #4
        You can just use the admin script to browse around and find it, or click the IP: Logged link.

        Comment


        • #5
          I am not running my forum on VB. Okay?? I just need to know a script so whoever posts, there IP gets emailed to me.

          Comment


          • #6
            I really need this script. Maybe you can make it an </HTML TAG> I dunno, But I need this badly, I also need a page made that I can upload to my webspace, and I have to login for this page and it will show the IP adress's of the people that have posted and I can ban one if I would like and they would not beable to come to my wesite anymore.

            Comment


            • #7
              I have a forum, its a guest book really but I use it as my forum. I want this script so that when someone posts there IP is recorded on a webpage uploaded on your browser. And only the admin can get to it, you have to put in a username, and a password. When you login, a page apears and the name they picked for the post, the IP is displayed next to it like this
              Code:
               
              Username                     IP                            Ban 
              Test                                000.000.000.0        (Check box to ban IP) 
              Test1                              000.000.000.1        (Check box to ban IP)
              So I can login, and ban IP, then if the IP is banned, they can no longer view your website. It will pop up a different page and it will say
              Code:
               
              Sorry, the webmaster has banned your IP adress, you may contact the webmaster at TheSkunkRulezUT@yahoo.com
              And a place on the website where you can uncheck the IP ban.
              So once they post, there IP shows up and then, and it can be banned.
              Thanks.

              -Skunk
              My Forum

              Comment


              • #8
                Have you gotten the answer yet?

                if not,
                this is how I do it

                Code:
                <?
                function logip($path) {
                	global $REMOTE_ADDR;
                	writetolog($path, "$REMOTE_ADDR*\n");
                }
                
                function parseips($ips) {
                	return str_replace("*", "<BR>", $ips);
                }
                
                
                
                function writetolog($logfile, $texttowrite) {
                	$filenum = fopen($logfile,"a");
                	fwrite($filenum,$texttowrite);
                	fclose($filenum);
                }
                ?>
                that goes into a included function file....

                and this goes into the page that you are logging the IP's

                Code:
                <?
                logip("ip/ip.txt");
                ?>
                and thats it,
                it will log it like this

                Code:
                <IP NUMBER>*
                {newline}
                then when you want to view the IP's, you call the parse IP function.

                Code:
                <?
                require("php-cgi/functions.php");
                echo parseips(openfile("ip/ip.txt"));
                ?>
                I have found that using * and {newline} is the best way to log them....

                this is what ip.txt looks like

                Code:
                192.168.1.1*
                192.168.1.1*
                192.168.1.1*
                192.168.1.1*
                192.168.1.1*
                192.168.1.1*
                192.168.1.1*
                and this is what viewvisitors.php (the file to view the IP's) looks like after its run

                Code:
                192.168.1.1
                192.168.1.1
                192.168.1.1
                192.168.1.1
                192.168.1.1
                192.168.1.1
                192.168.1.1

                I hope this helped....

                I originally designed this to log all IP's for my business.... but after i found out that was illegal... I am just using it for my BB now.

                Visual Basic, HTML, PHP, SQL, ASP, JavaScript, C++, Perl

                PHP 4.0.6
                MySQL 3.23.39
                Windows 2000

                Comment


                • #9
                  He should have gotten the answer by now as I have already banned him on 3 different ip ranges from my forum.

                  Comment


                  • #10
                    Why did you ban him?
                    bad language?
                    etc.?
                    Visual Basic, HTML, PHP, SQL, ASP, JavaScript, C++, Perl

                    PHP 4.0.6
                    MySQL 3.23.39
                    Windows 2000

                    Comment


                    • #11
                      Has anyone used this tool?

                      http://whois.bw.org/
                      Larry Eitel - Administrator & Webmaster
                      NoBlood.org
                      Transfusion Alternatives and Blood Management

                      Comment


                      • #12
                        Originally posted by leitel
                        Has anyone used this tool?

                        http://whois.bw.org/
                        Are you sure it existed back in September 2000?
                        Chen Avinadav
                        Better to remain silent and be thought a fool than to speak out and remove all doubt.

                        גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                        Comment


                        • #13
                          Originally posted by Dennis Wrenn
                          I originally designed this to log all IP's for my business.... but after i found out that was illegal... I am just using it for my BB now.
                          Illegal? Why?

                          Comment


                          • #14
                            vb will provide you with the IP automatically, so maybe you should upgrade. Otherwise, maybe you should contact your software's support department for help.




                            Originally posted by AngelofDeath
                            I have a forum, its a guest book really but I use it as my forum. I want this script so that when someone posts there IP is recorded on a webpage uploaded on your browser. And only the admin can get to it, you have to put in a username, and a password. When you login, a page apears and the name they picked for the post, the IP is displayed next to it like this
                            Code:
                             
                            Username IP Ban 
                            Test 000.000.000.0 (Check box to ban IP) 
                            Test1 000.000.000.1 (Check box to ban IP)
                            So I can login, and ban IP, then if the IP is banned, they can no longer view your website. It will pop up a different page and it will say
                            Code:
                             
                            Sorry, the webmaster has banned your IP adress, you may contact the webmaster at TheSkunkRulezUT@yahoo.com
                            And a place on the website where you can uncheck the IP ban.
                            So once they post, there IP shows up and then, and it can be banned.
                            Thanks.

                            -Skunk
                            My Forum
                            vBulletin Hosting - Building my Automotive Forum Network...
                            vBulletin FAQ - Lincoln vs Cadillac - Mopar Forum - Car Audio Forum - E Body Mopar Forum - B Body Mopar Forum
                            Pick Up Truck Forum - C Body Mopar Forum - FMJ Body Mopar Forum - Willys and Jeep Forum

                            Comment


                            • #15
                              The date on the post is September 2000... why was this bumped? It's over 3 and a half years old.

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X