Random subdomain generator settings for nginx and cloudflare
First, prepare your Linux server* with a fresh install of Ubuntu, Debian or etc.
Use this one line code to install and configure nginx:
wget https://raw.githubusercontent.com/JustUnknownDude/Nginx-subdomain-randomizer/main/quickstart.sh && bash quickstart.sh- Open crontab
crontab -e- Paste this command
*/2 * * * * bash /random.sh >> /dev/nullAll you have to do is sign up for a free account.
Add your domain and specify the DNS of the cloudflare server at the domain registrar
Specify A-records for your domain in cloudflare: yourdomain.com *.yourdomain.com
Open yourdomain.com/fref/ in browser.
Done.
This is a bash script to quickly expand the contents of the rest of the files on the server
Config for nginx that listens on yourdomain.com/fref/ and redirects to a subdomain that is randomly generated by the random.sh file. In the config, there is a further redirect to the target server with the site. You can also host the site immediately on this server, just edit the config a little to fit your goals.
The script generates a new subdomain randomly and replaces it in the nginx config.
Just a list with bots to block them with nginx. For the main task is not important.