I'm using GNU Parallel for scanning a list of urls (from different hosts) for vulnerability, like this:
cat urls.txt | parallel --gnu -j 50 ./scan {}
The 'scan' program works for one url in one thread. And I need to hard-limit the number of simultaneous requests (jobs) to each host, for example to 5 connections. How can I achieve this?