Using NordVPN with cURL in PHP

Hello again, my DynamoGeek friends!


I'm going to forego most of the time consuming fancy words today and just dump some (hopefully) useful information.


I had need to access a website via cURL through a VPN using PHP. Though my specific current VPN of choice is NordVPN, theoretically this information could be applied to any SOCKS based VPN service that requires authentication.


To help out those in the back of the room, and the search engines, I'll summarize what I did more concisely. I wrote some spiffy PHP code that proxies requests for webpages through NordVPN using cURL.


I hope you've found this quick bit of information useful, and I'll see you next time.