Possibility of blocking any ads via hosts with VPN?

Hey there everyone! I’ve started my VPN with ubuntu. I’m using it on my asus rt n66u client. I’m just wondering whether it’s possible to block any ad via vpn with editing hosts or something else (btw i tried editing hosts and it didn’t help, proly i’ve mistaken)?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


VPN services do not offer DNS resolution generally (OpenVPN for example, does not do this) and so your modifications to the droplets /etc/hosts will have no affect. You will want to make these modification locally if you need them as the VPN service generally does not offer this sort of modification.