# Macro with secret passport field

**URL:** <https://forums.distill.io/t/macro-with-secret-passport-field/5060>\
**Category:** Help and Support\
**Tags:** macros\
**Created:** [May 6, 2025, 2:58pm UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060 "2025-05-06T14:58:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lang61](https://forums.distill.io/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@lang61](https://forums.distill.io/u/lang61)\
**Post date:** [May 6, 2025, 2:58pm UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060/1 "2025-05-06T14:58:37Z")

</div>

Hi,

when I record the macro, the webpage has a secret password. The step looks like this

[type\_secret](https://monitor.distill.io/#)

`[aria-controls^='pv_id'] $password`

I put the passwort in the input field. when I run the macro it always asks to enter the password. How do I fix the macro, so the password is hardcoded.

thanks in advance

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [May 6, 2025, 6:12pm UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060/2 "2025-05-06T18:12:41Z")

</div>

@lang61 the password is usually saved in monitor’s options. can you go [monitor.distill.io](http://monitor.distill.io) and try adding a monitor using the macro? you will asked to enter the password which will be saved there.

please see [https://www.youtube.com/watch?v=fSLGBqn2MGo](https://www.youtube.com/watch?v=fSLGBqn2MGo) to see how to configure a monitor to use the macro.

let me know if you need help at any step.

---

<div class="post-metadata">

**Author:** ![lang61](https://forums.distill.io/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@lang61](https://forums.distill.io/u/lang61)\
**Post date:** [May 7, 2025, 6:10am UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060/3 "2025-05-07T06:10:03Z")

</div>

Thanks for help. I got it to work now. 😀

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [May 7, 2025, 8:47am UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060/4 "2025-05-07T08:47:11Z")

</div>

cool, glad to help! 😃

---

<div class="post-metadata">

**Author:** ![seyeeet](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/c77e96/32.png) [@seyeeet](https://forums.distill.io/u/seyeeet)\
**Post date:** [May 8, 2025, 8:52pm UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060/5 "2025-05-08T20:52:01Z")

</div>

I am trying to use Macro for a website that requires a password to log in.  
I am following [How to monitor webpages with login and password? – Distill](https://distill.io/blog/track-password-protected-pages/)  
I noticed that after recording the steps for the password it shows `type_secret` and when I try to replay it, I still need to provide the password.

Update:  
after watching [https://www.youtube.com/watch?v=fSLGBqn2MGo](https://www.youtube.com/watch?v=fSLGBqn2MGo)  
I still get the same error, the issue is  
`site responded with status code 403 (access denied) `

 ![Screenshot 2025-05-08 at 20.41.40](https://forums.distill.io/uploads/default/original/2X/0/04845d418ad955e5b192b19bcdcb8a871823909a.png)  
is there a way to fix this issue?

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [May 9, 2025, 4:41am UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060/6 "2025-05-09T04:41:42Z")

</div>

@seyeeet can you try running it again and see if it works after retrying? once the macro is run, the password should be saved in the monitor’s config. it will then be used for checks automatically.

let me know if this doesn’t work. using a local device can be a good option in that case.

edit: the site returns 403 status code on initial access. we have updated the validator to not raise an error for this site. that should make it work.

---

<div class="post-metadata">

**Author:** ![seyeeet](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/c77e96/32.png) [@seyeeet](https://forums.distill.io/u/seyeeet)\
**Post date:** [May 13, 2025, 6:36am UTC](https://forums.distill.io/t/macro-with-secret-passport-field/5060/7 "2025-05-13T06:36:13Z")

</div>

Thanks, seems to be working now
