SOCKS5 is used for secure and anonymous internet browsing by redirecting internet traffic through a proxy server.