Block or Allow ?

I get many times this message :

I don’t know if it’s a person that try to hack my SQL or a normal thing. How can I know if its a person that try hack me or a good thing ?

I would block anything received from the internet unless I was expecting it.