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 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default wat php security is..

    needed for a usersystem login and register side at the moment. prefer a link to php.net somehwere if not ill still look

  2. #2
    Join Date
    Apr 2005
    Location
    South Wales!
    Posts
    3,535
    Tokens
    2,836

    Latest Awards:

    Default

    umm well how big is the site your using it on? anything like credit card dets going through it?

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

    Default

    not yet just need for login register page ATM!

  4. #4
    Join Date
    Apr 2005
    Location
    South Wales!
    Posts
    3,535
    Tokens
    2,836

    Latest Awards:

    Default

    hmm well most probably, sessions would be better than cookies,

    you could even encrypt the whole page, I used to have the site favourited but that was on my old pc just search something like php encryptor

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

    Latest Awards:

    Default

    Quote Originally Posted by awelsh View Post
    hmm well most probably, sessions would be better than cookies,

    you could even encrypt the whole page, I used to have the site favourited but that was on my old pc just search something like php encryptor
    Why would you encrypt the whole page? No one gets to view the source code anyway.. so thats not a security risk.

    If you use MySQL be sure to clean all inputed data and all $_GET's

  6. #6
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice, View Post
    Why would you encrypt the whole page? No one gets to view the source code anyway.. so thats not a security risk.

    If you use MySQL be sure to clean all inputed data and all $_GET's
    and $_POST's never forget them


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

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

    Latest Awards:

    Default

    Why would you encrypt the whole page? No one gets to view the source code anyway.. so thats not a security risk.

    If you use MySQL be sure to clean all inputed data and all $_GET's


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

    Default

    Cheers caleb

  9. #9
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    PHP Code:
    class misc
    {

        function 
    clean($var)
        {
        
            
    $var htmlspecialchars$varENT_QUOTES );

            if( 
    get_magic_quotes_gpc(   ) ) {
        
                
    $var stripslashes$var );
                        
            }
                    
            
    $var str_replace"\""""$var );
            
    $var htmlentities$var );
            
    $var mysql_real_escape_string$var );
            
            return 
    $var;
        
        }


    Simple thing I wrote up for Caleb in the quick reply box

    Could use a few more cleaning functions though.

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

    Default

    mysql_real_escape_string what does that do?
    htmlentities what does that do?
    get_magic_quotes_gpc and what does that do?

    just want to learn thats all

Page 1 of 2 12 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
  •