You can block gambling sites through GamStop. GamStop asks about the devices you use because the platform is authorised to block your gambling activities on the web and your devices.
Alternatively, you can block all gambling software on your iPhone through GamCare, which hooks you up with various gambling-specific blocking software such as Betfilter for your iOS device.