r/webdev • u/Turk_the_Young node • Aug 08 '24
Question [Scripting] Are automated requests identifiable?
I’ve programmed a website automation both in AppleScript and shell for my job, that opens the default browser, redirects to a specific URL, and does some repetitive tasks on the DOM.
I need to make this automation as natural as possible, normally I need to complete these tasks personally. I’ve read that “AppleScript might use a specific User-Agent string that could be flagged as an automated request”, but I couldn’t find a solid source on this one.
Is it easily identifiable? If so, are there any steps I can follow to make it like any other HTTP request?
2
u/originalchronoguy Aug 08 '24
If your applescript is simply forking a curl command (osaexec curl), you can pass it -H arguments with a user agent like Chrome browser.
2
u/Inevitable-Yogurt783 Aug 09 '24
Depends on the website. I never code protection against crawling. So if you code bots against it you will no be blocked. Others might check your agent, your cookies, sessions, mouse movement, captchas, request speed.
1
u/igorski81 Aug 09 '24
Just wondering. This sounds like you are automating a repeated manual process to make your life easier and you want to hide the fact that a previously long task now is done with minimum effort on your end ?
If so, kudos to you!