It is required to have both a valid and up-to-date UA, have valid, recent cookies and to scrape from the SAME IP that the cookies were obtained on. Otherwise, you will be blocked by DDOS-Guard. If you fail too many times, your IP will be blocked from accessing the site entirely for some amount of time (hours)
cookies
To configure scrapers with DDOS-Guard, a real browser MUST be used to first extact the DDOSGuard cookies and then passed on to the scraper. They are valid for at most 24h but can and do expire much faster if you are scraping multiple pages or consistently
You can follow the instructions in gallery-dl for extracting cookies. You want to append all of the cookies to the end of the scraper.yml file and make sure that the name also matches, since DDOSGuard changes the names frequently and between sites as well
You can optionally use my tool to automatically format and generate the format that scrapers request
user-agent
You must use an up-to-date user agent and update regularly. You can find databases by typing in “User agent list” or by using your browser’s user-agent. This is set under Scraping → Scraper User Agent.
This can also be partially automated with my plugin, Useragent