Jump to content
MakeWebGames

Recommended Posts

Posted

Ok, so im viewing a users profile to welcome them to the game and come across this for their internet info.

Internet Info

IP Hostname

Last Hit 127.0.0.1', money='2 N/A

Last Login 127.0.0.1', turns='2000000000 N/A

Signup 127.0.0.1', turns='2000000000 N/A

It looks like they have tried to cheat, just wondering if theres anything i can add to my register page to make it a little more secure.

Posted

Re: Injection attempt.

Change your IP catcher in header.php and global_func.php.

Find:

$IP = ($_SERVER['HTTP_X_FORWARDED_FOR'])
    ? $_SERVER['HTTP_X_FORWARDED_FOR']
    : $_SERVER['REMOTE_ADDR'];

 

Change to/replace with:

$IP = $_SERVER['REMOTE_ADDR'];
Posted

Re: Injection attempt.

Thanks for the help, i have altered the files, and will go through the threads.

Is it safe to assume all users with ip 127.0.0.1 have attempted to inject or an error registering ips?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...