In the new iOS 18, there is an option to password protect an application or even close it to the iPhone desktop. There are situations when you need to prohibit the launch of a program or game for yourself.
For example, to avoid lingering on social media while working or reading work email before going to bed. This can be done using focus modes, but not everyone wants to mess around with settings. It’s easier and faster to set up an automation command for this.
-
🙋♂️ Reply to any the question about Apple is here: https://t.me/iphonesru_forum 👈
How to Prevent Apps from Running on iPhone
1. Download the free Teams app.
2. Download the command from the link.
3. Click the three dots to open the team options.
4. Replace the word “Shooting” with the name of the focus mode you want, for example, Do not disturb.
5. Open the tab Autonomization and create a new automation.
6. Select condition Application – Open.
7. Check the flag Instant launch and specify the program or game you want to block. You can use several applications at once.
8. Select the Run command action and specify the downloaded script. Focus on hitting the house.
Now when you launch one of the selected applications, the condition will be checked: is the selected focus mode enabled? If it is enabled, the program will close.
Source: Iphones RU

I am a professional journalist and content creator with extensive experience writing for news websites. I currently work as an author at Gadget Onus, where I specialize in covering hot news topics. My written pieces have been published on some of the biggest media outlets around the world, including The Guardian and BBC News.