Have you ever picked up free wifi in a hotel or airport and had the "30 minutes free wifi" and then had the option to pay silly money for an hour? This tip allows you to completely reset that 30 minute grace period, prompted by the following tweet.
MY WORKSHOPMaster Next.js
Everything you need to master universal React with Next.js in a single intense master class. Includes full pass to ffconf, the web developer conf.
The following command will spoof the mac address of your machine, so the captive portal wifi will see your machine as brand new, and reset your free period:
alias freewifi="sudo ifconfig en0 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`"
This will make a new command called
freewifi that changes you MAC address to a random value. Note that to reset your MAC address, you'll either need to reboot, or take a backup of it first (to restore later on):
ifconfig en0 | grep ether
You don't particularly need to understand the details, but if you want to learn, I do cover
sudo, piping and
sed in my terminal training course.