Today someone with a bot tried to make a mess on my database by submitting a form on my website many many times. On my database rows I've found fields filled with strings like these:
- -1 OR 2+562-562-1=0+0+0+1
- 555
- LJanLlog
- TwIvCbrf' OR 754=(SELECT 754
- FROM PG_SLEEP(15))--
- 0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
- if(now()=sysdate(),sleep(15),0)
- 0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
- 1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
I've ask to my provider to turn off my website.
How can I prevent something like this? Is there any way to check if someone is submitting something like above and in case redirect him without make the query?
I sanitized any field already.
Thank you.