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!


Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default IP Spam Stop thing

    Does any 1 know a code where once an IP has entered a form it logs there ip so it wont let them use the form again?
    iv looked around but couldnt find any
    If you know, could you send link pls.
    +Rep


    Thread moved to ' Website Designing & Development ' by Yoshimitsui (Super Moderator).
    Last edited by Yoshimitsui; 23-09-2007 at 06:11 PM.

  2. #2
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    You need alot of things lately don't you Can't you just store submitted IPs into a file?

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

    Latest Awards:

    Default

    Then it could be easily found and people could get hacked
    Quote Originally Posted by !Lily
    You need alot of things lately don't you Can't you just store submitted IPs into a file?
    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.

  4. #4
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    put it into a mysql db then query if ip = 0 display form

  5. #5
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    right, iv got it so it adds the ip 2 the database, now i need it so:
    if ip is in database it says you cant use it
    but if ip isnt it displays a form.

    can any 1 provide me with a script pls

  6. #6
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    well you would query like
    Code:
    Mysql_query()
    fetch it lol
    if ($query=1){
    echo("You have taken part in the form");
    }
    if ($query=0){
    echo("FORM");
    }

  7. #7
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Eccentric View Post
    well you would query like
    Code:
    Mysql_query()
    fetch it lol
    if ($query=1){
    echo("You have taken part in the form");
    }
    if ($query=0){
    echo("FORM");
    }
    im not very good with querys

  8. #8
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by .:Jack120:. View Post
    im not very good with querys
    PHP Code:
    $ip $_SERVER['REMOTE_ADDR'];
    $query "SELECT * FROM `loggedips ` WHERE `ip`='" $ip "';";
    $res mysql_query($query);
    $num mysql_num_rows($res);

    if(
    $num 0) {
    //don't display form
    } else {
    //display the form

    Edit the query as appropriate.

  9. #9
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    Quote Originally Posted by Tomm View Post
    PHP Code:
    $ip $_SERVER['REMOTE_ADDR'];
    $query "SELECT * FROM `loggedips ` WHERE `ip`='" $ip "';";
    $res mysql_query($query);
    $num mysql_num_rows($res);

    if(
    $num 0) {
    //don't display form
    } else {
    //display the form

    Edit the query as appropriate.
    Thanks for touching up on that as i'm not too good on php havnt revised on it for a while

Posting Permissions

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