mysqli - change sql permission to prevent SQL injection -


i'm making website using php , mysqli. , i've been read lot sql injection. answered on other questions stackexchange, 2 ways of prevent using prepared statement , escaping string. since i'm not able prepared statement (i've tried make based on tutorials , videos can't make work) chose way(escaping string). question is, if change permission user @ sql login page, able 'select' query. able give me security measure prevent user drop, alter, etc on database. because website :-

  1. not require user register.
  2. the text field link query full text search function (which use select query , have mysqli escape string on text field).

it's idea give application's database login permissions needs. if doesn't need inserts or updates, don't give insert or update permission.

however, attackers may still able exploit sql injection vulnerabilities read unauthorized data using select statements, still need protect queries against that.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -