Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Post [Free] IP login panel

    Hey guys. I'm an old member of Habbox forum, so you may not know me but hey. I'm busy making rubbish in PHP, so I thought I may as well post on here. Let you guys have it haha. Anyway, you should see a few more codes soon, One I may make people pay for it. (yes, it will be that good).

    Anyway, this was going to be used for one of my websites but the idea fell through simply due to time. All it is really, is a login form with a php script that blocks out people that have a different ip than the one registered. Quite simple in theory, but it reduces hacking I guess. For simple reasons, I have just redirected the people without the right ip to an error page, you may edit this to what you want, or maybe a different website.


    Preview of the login page:


    If you don't want the fancy login page, here is a preview of the php code (feel free to stick it in your current login pages. However, if you do use the full login system, you may edit the bottom disclaimer, so long as it has my name in there somewhere)
    PHP Code:
    <?php 
    $ip 
    $_SERVER['REMOTE_ADDR']; //This gets the current IP wanting to view the page
    $my_ip="127.0.0.1"//This is where you define your IP

    if ($ip != $my_ip) { // This is basically saying "if the IP wanting to view the page isnt the same as mine, redirect to another website
        
    header("Location: http://www.google.com");
    }
    ?>
    [Download the full script and login page]


    Thanks,
    Craig Embleton.



  2. #2
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    Very nice
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  3. #3
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    It's a good idea, but it's impractical because too many people have dynamic IP addresses - although for those with static IPs this is a good idea. A good feature in a system would be the ability for you to be able to enable or disable IP checking, depending on whether the user has a static or dynamic IP.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  4. #4
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Default

    True, but at the end of the day, not many people have dynamic IPs, unless they are running off proxy servers. I can understand where you are coming from. I'm not sure if ranging a network span would work. Ah well, it was just a thought I came up with, it's an excuse to do some PHP and learn once again .

    (Thanks Flisker)



  5. #5
    Oni Guest

    Default

    Yeh and also people may want to log in at school/work/an internet cafe, nice though.

  6. #6
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Quote Originally Posted by craigg. View Post
    True, but at the end of the day, not many people have dynamic IPs, unless they are running off proxy servers. I can understand where you are coming from. I'm not sure if ranging a network span would work. Ah well, it was just a thought I came up with, it's an excuse to do some PHP and learn once again .

    (Thanks Flisker)
    Surely anyone using a router box will have a dynamic IP address, Unless they have DHCP enabled
    But i ain't up on this stuff so maybe wrong


  7. #7
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    I have a dynamic IP, most in the USA do :\

    Others you have to pay for static ips

  8. #8
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Default

    If you have a router, the IP only differs slightly. I'm not sure about USA as I live in the UK. But yes, I guess a few do have dynamic IP's, but the majority do have static. (Well, I am up for offers, I'm not saying that is fact. Just my own opinion.)

    Sorry if I have annoyed anyone, in anyway about their dynamic IP's .



  9. #9
    Join Date
    Nov 2006
    Posts
    1,939
    Tokens
    0

    Latest Awards:

    Default

    nice ;]

  10. #10
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by craigg. View Post
    If you have a router, the IP only differs slightly. I'm not sure about USA as I live in the UK. But yes, I guess a few do have dynamic IP's, but the majority do have static. (Well, I am up for offers, I'm not saying that is fact. Just my own opinion.)

    Sorry if I have annoyed anyone, in anyway about their dynamic IP's .
    no no its nice Thanks for supplying it

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •