You sound like one of Jobs buddies, who sat around and told him that his horrible afflictions were an act of God caused by his sin.
They were actually an act of Satan and because of Jobs refusal to curse God for the horrible things that were happened to him he was rewarded in the end.
Read the book of Job.
Yes God allowed Satan to do the things he did but, he knew Job would not curse him.
God does what God does. who are we to question him?
Don't try to get people to curse God!