It's not really the magic trick we see in the movies.
This is a simple script to automate spoofing domains into staging when testing changes in Akamai.
Pull this repository and make a link going from the script file (stagespoof.sh) to /usr/local/bin/stagespoof
.
ln stagespoof.sh /usr/local/bin/stagespoof
This is the preferred method as you will be able to test contributions and get updates more easily.
Copy stagespoof.sh directly into /usr/local/bin
.
OR
Copy into your favourite scripts folder that's part of your $PATH
variable.
Run stagespoof
command with any domain needing to be spoofed.
stagespoof news sports noovomoi
Run stagespoof
command with the reset
option.
stagespoof --reset
# or
stagespoof -r
Any and all contributions are welcome. ✨ Simply make a Merge Request from your own fork with your changes and I'll check it out. 😊
- Error handling
- Domain spoofing chaining (giving more than one domain as argument and going through all of them one by one)
- Proxy server setup argument
- Detect proxy server setup on other OSes