Yahoo
Skip to main content
Advertisement
Advertisement
Advertisement
Advertisement

I automated my VPN to turn on whenever I open my banking app—here's how

A VPN connection is enabled on an Android device.
Nathaniel Pangaro / How-To Geek

Over the years, more web browsing has been done on mobile devices than on desktops or laptops. While those devices are still in use, you probably reach for your phone to visit a website before your laptop nowadays.

Using my mobile phone to surf the internet comes with all the additional features I can use, like setting up specific automations. One that I have been utilizing is having my device automatically turn on my VPN when I visit specific websites, and it has made my browsing experience so much better.

The reasons I turn on my VPN

Using a VPN has other benefits than security

A VPN is the way to go if you are looking to increase your privacy and security on Wi-Fi. The VPN encrypts your data, which can protect sensitive information and prevent your internet service provider, or ISP, from tracking your app usage.

surfshark vpn running on phone

But it is not only about securing your information; a VPN also allows you to bypass geo-restrictions . This is commonly done to access additional content in other regions, whether through streaming services , gaming platforms , or other content-distribution apps .

Advertisement
Advertisement

This is one area where I like to keep my VPN on, because it lets me access content libraries from other regions—like Disney+ or Netflix —rather than what is available in the United States. For example, it's no secret that TikTok can offer a bunch of show recommendations, but some of them aren't available in the United States, which is why I use a VPN to change my region and watch them.

Social media folder on an Apple iPhone 14 Pro with Facebook, Threads, LinkedIn, Twitter, Instagram, TikTok, Reddit, Snapchat, and Bluesky apps.

Justin Duino / How-To Geek

Yet the one area where I always have my VPN on is when I use my banking app —especially in public. Having it on protects me from hackers who may set up fake Wi-Fi networks to steal my—or others'—data.

With my VPN enabled, my connection is encrypted, making my login credentials and account details unreadable to anyone snooping on the local network. Additionally, it prevents hackers from intercepting my connection or redirecting me to a fake version of my bank's site before a secure connection is established.

A dark hooded figure ominously using a laptop.

Bits and Splits/ Shutterstock

A VPN offers many benefits, helping keep your information secure while also allowing you to access content from other regions without being there. One of the biggest hurdles, however, is remembering to turn it on, which is why I created an automation to do so when using specific apps.

Setting up the VPN automation

My automation setup, brick by brick

When setting up my automation, I intended to use Samsung's Modes and Routines app , but ultimately I went with Tasker . Unlike the Modes and Routines app , Tasker is more powerful , allowing me to set various triggers and access deep system variables.

Google play pass on a smartphone screen.

Lucas Gouveia / How-To Geek

However, Tasker is not free. It costs $4.49 as a flat fee, but if you have a Google Play Pass subscription, then it is free.

Advertisement
Advertisement

Furthermore, a Play Pass subscription is free for the first month. This lets you see whether you like the app before spending money on it.

Apps downloaded to an Android device for VPN automation using the Tasker app.

Nathaniel Pangaro / How-To Geek | Samsung

In addition to downloading the Tasker app, I also have the OpenVPN Connect app, which creates the VPN connection, and Proton VPN , which provides the VPN service. Unlike Tasker, both are free to use, though they offer additional features for a fee.

However, these are my choices for setting up this automation, and you can use other VPN providers and connectors you prefer.

I started by making sure my Proton VPN profile was in the OpenVPN Connect app. Ensuring this allows Tasker to tell OpenVPN Connect to automatically connect to the VPN provider without any issues.

VPN connection enabled on the OpenVPN Connection app on an Android device.

Once I double-checked that the connection between the provider and the connector was successful, I could start piecing together the automation brick by brick.

Advertisement
Advertisement

I first opened the Tasker app and tapped the Profiles tab at the top of the screen. Once in, I tapped the plus icon in the lower-right corner of the screen.

Tabs on the top of the Tasker app—consisting of one titled

Nathaniel Pangaro / How-To Geek | Samsung

Above the button to add a profile is a four-pointed star, which closely resembles the icon for Google Gemini , since the app relies heavily on the Gemini API . Tapping that button lets you use natural language to create an automation.

While this is a useful feature, I chose to configure my automation manually and just tap the plus icon underneath it.

Since I will be triggering this automation when I open a specific app, I chose Application from the dropdown menu. This will show all the apps on my phone and let me tap one or more I want to trigger the automation when I open them.

Application option in the Tasker app on an Android device.

Nathaniel Pangaro / How-To Geek | Samsung

Once I select them and tap back out of the app menu, I will be prompted to name the automation. It could be named anything, but for a simple name, I went with "VPN enabled."

Advertisement
Advertisement

I was then brought into the automation process, which also had a plus icon in the bottom right of the screen. After I tapped it, a menu appeared, and at the bottom, labeled "Filter," I typed in "Send Intent," and an option with the Android logo appeared to the left of it.

Send Intent option in the Tasker app on an Android device.

Nathaniel Pangaro / How-To Geek | Samsung

The next part was the most time-consuming, but it was easy to do. A sheet appeared with a bunch of fields to fill out, including: Action, Profile ID, Auto-connect, Package, and Class.

  • Action: net.openvpn.openvpn.CONNECT

  • Profile ID: net.openvpn.openvpn.AUTOSTART_PROFILE_ID: [ID number]

  • Auto-connect: net.openvpn.openvpn.AUTOCONNECT: true

  • Package: net.openvpn.openvpn

  • Class: net.openvpn.unified.MainActivity

For the Profile ID, I went back to my Proton account, copied the information, and pasted it into the field.

Profile ID and Auto-Connection in the

Nathaniel Pangaro / How-To Geek | Samsung

Do note that there are no specific fields for Profile ID or Auto-connect on the sheet, so you need to utilize the fields labeled "Extra" to input the information.

Advertisement
Advertisement

Once all of this information was entered, I tested the automation by pressing the play button in the lower left of the screen. If everything worked, I tried it again by opening one of the apps I set as a trigger. If it worked there, I would be all set.


Automatically be protected

While the setup took some time, the payoff was worth it. It has been very helpful for my VPN to turn on automatically whenever I open specific apps—like my banking app—because I sometimes forget to do so.

Not only is this automation helpful, but whenever I find another app I want to protect with a VPN, I just add it to the Tasker automation, and it's good to go.

No longer am I surfing and browsing unprotected. With this automation enabled, I am protected by my VPN when I expect to be, without doing anything additional.

Advertisement
Advertisement

Check out Yahoo's latest VPN advice, based on hands-on testing.

Best VPNs in 2026 | The best VPNs for streaming in 2026 | The fastest VPNs in 2026 | Best VPN for Mac in 2026 | Most secure VPN in 2026 | 8 ways to make your VPN run faster | Does using a VPN impact internet speeds? | Are VPNs really safe? | See Yahoo Tech's full VPN coverage

Advertisement
Advertisement
Mobilize your Website
View Site in Mobile | Classic
Share by: