Blocking hard and master reset or internet access permanently on Samsung Galaxy phone
1.You can install one of parental control apps and ask your friend to set password for you (if you are ashamed you can tell that this is e.g. for your son or sister...). 

2.If you have rooted phone that topic is for you ! Made this application as the system app and then unroot your phone.

I think in your case best solution is using both methods above.