# you'll need a file named user_agents.txt, containing list of user-agents string # a list of User Agents string can be obtained here : https://pastebin.com/w8FYemC0 ######## one-line version ######## while true ; do user_agents_total=$(wc -l user_agents.txt | awk '{print $1}') ; user_agent_random=$(cat user_agents.txt | while read user_agent ; do echo "`expr $RANDOM % $user_agents_total`:$user_agent" ; done | sort -n | sed 's/[0-9]*://' | head -1) ; torsocks wget -U "$user_agent_random" -O /dev/null https://YourWebsite.com/ ; /etc/init.d/tor restart ; sleep $(( ( RANDOM % 10 ) + 1 )) ; done ######## normal version ######## while true do # get a random User-Agents string user_agents_total=$(wc -l user_agents.txt | awk '{print $1}') user_agent_random=$(cat user_agents.txt | while read user_agent do echo "`expr $RANDOM % $user_agents_total`:$user_agent" done | sort -n | sed 's/[0-9]*://' | head -1) torsocks wget -U "$user_agent_random" -O /dev/null https://YourWebsite.com/ # restarting Tor will cause us to switch to another Tor node = different IP address /etc/init.d/tor restart # hold off / delay for random amount of tim sleep $(( ( RANDOM % 10 ) + 1 )) done