NordVPN Help Center
One place for all the information you need

VPN for specific websites only

Updated

Usually, a VPN is used to protect and secure all of your traffic, by encrypting it and sending it through our servers. However, you may want to use the VPN only for specific websites, IP addresses, or servers, and allow your traffic to not go through the VPN if accessing those certain services.

This is opposite of what we go over in our "Bypass VPN for specific websites" article. 

A VPN connection for specific websites/IPs only can be created by using an OpenVPN connection, and modifying the .ovpn file that is used for that connection.

  • First, learn how to connect to NordVPN servers using a manual OpenVPN connection. You can find tutorials for the most common Operating Systems below, but you can adapt this tutorial even for devices that are not listed below, as long as they use an OpenVPN connection where additional parameters can bee used:

    • Windows (Using OpenVPN GUI):
    https://support.nordvpn.com/hc/en-us/articles/115001204249

    • Mac (Tunnelblick):
    https://support.nordvpn.com/hc/en-us/articles/115003837845

    • iOS (OpenVPN Connect):
    https://support.nordvpn.com/hc/en-us/articles/207618485

    • Android (OpenVPN Connect):
    https://support.nordvpn.com/hc/en-us/articles/207619055

  • After learning how to connect via a manual OpenVPN connection, open and edit the ".ovpn" configuration file you will be using in a text editor, such as "Notepad" on Windows, or "TextEdit" on Mac. At the very top, add these two lines:

    route-nopull
    route 1.2.3.4

    The first line will prevent the connection from passing on all of your traffic through the VPN server, and the second line specifies which IP addresses you would like the VPN connection to be active for.

    The second line can specify whole subnets, and you can also make multiple lines for multiple IP addresses.

  • Save the ".ovpn" configuration file, and use it to connect to a NordVPN server. The VPN will not be active for websites/IP addresses which you did not specify in the step above. (Please note that you will not be able to confirm that the VPN connection is active on regular IP checking websites if you do not add their IP addresses as well)