User agent with spider

248 views
Skip to first unread message

Mewzer

unread,
Jun 20, 2021, 10:19:06 AM6/20/21
to OWASP ZAP User Group
Hello!

When I go to Options->Connection in the Zap GUI, I can supply my own user agent string. 

If I then run the traditional spider, it appears to use the custom defined user agent string.

However, how do I define the user agent to use in the Ajax spider? Perhaps I am doing something wrong, but it doesn't seem to take the custom defined user agent string in Options->Connection.

Many thanks!

thc...@gmail.com

unread,
Jun 21, 2021, 3:10:45 AM6/21/21
to zaprox...@googlegroups.com
Hi.

That option is for requests created by ZAP, the requests from the AJAX
Spider are created by the respective browser.

If you want all requests sent by ZAP to have a specific User-Agent you
could use a replacer rule:
https://www.zaproxy.org/docs/desktop/addons/replacer/

Best regards.

Mewzer

unread,
Jun 21, 2021, 4:10:42 AM6/21/21
to OWASP ZAP User Group
Thanks! I managed to use the replacer and that worked!
Reply all
Reply to author
Forward
0 new messages