Injections, stopping them

Results 1 to 4 of 4
  1. #1
    aka saze xteslaz is offline
    MemberRank
    Jul 2014 Join Date
    222Posts

    Injections, stopping them

    /rickroll/
    Last edited by xteslaz; 22-01-17 at 07:02 PM.


  2. #2
    Apprentice iGabriel is offline
    MemberRank
    Oct 2013 Join Date
    EnglandLocation
    8Posts

    Re: Injections, stopping them

    I'm not sure exactly where your SQL Injections are coming from, but I'm currently starting up my own server and from what I've heard, are you using PHP register script? I was told you need to have your registering inside your launcher so that people can't Inject you, other then that Idk :c

  3. #3
    Anotha One Wicious is offline
    MemberRank
    Jan 2013 Join Date
    StockholmLocation
    839Posts

    Re: Injections, stopping them

    Best way is to use PDO and parameterized/escaped queries. Never trust user input directly without cleaning them. This should get you started.

    Also I assume you're using odbc? Last time I checked there wasn't an official php 7 sqlsrv driver, but haven't looked in a while.

  4. #4
    aka saze xteslaz is offline
    MemberRank
    Jul 2014 Join Date
    222Posts

    Re: Injections, stopping them

    Quote Originally Posted by Wicious View Post
    Best way is to use PDO and parameterized/escaped queries. Never trust user input directly without cleaning them. This should get you started.

    Also I assume you're using odbc? Last time I checked there wasn't an official php 7 sqlsrv driver, but haven't looked in a while.
    There's one up on their github.

    Verstuurd vanaf mijn SM-G900F met Tapatalk



Advertisement