Jump to content

waynewex

Members
  • Posts

    2,405
  • Joined

  • Last visited

Posts posted by waynewex

  1. You can stop hotlinking by putting this into a .htaccess file and uploading it to the main document root of your website:

     

    RewriteEngine On

    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?YOURSITE\.com/ [NC]

    RewriteCond %{HTTP_REFERER} !^$

    RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/goatse.jpg [L]

    [/quote[

     

  2. Firstly, you're not cleaning those incoming POST variables with mysql_real_escape_string().

     

    Secondly, have you thought about hashing your passwords so that they don't get stored as plaintext (md5, sha1 etc)?

     

    Thirdly, have you made sure that two accounts can't have the same login combination? That can be done by not allowing email addresses that are already registered or by requiring the user to verify his/her email address before loggin in. Two or more accounts having the same login on your system would cause all of those accounts to get "locked out".

     

    Fourthly, you should be checking for errors in your queries by doing this:

     

    $obtainlogin=mysql_query("SELECT * FROM networks WHERE username='$user' && password='$pass'") or trigger_error(mysql_error());
    

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.