Upon CDN resource creation/edit, enable "advance settings":
- Enable Password – tick this checkbox to restrict access to the resource (cdn hostname).
- Unauthorized HTML – input the text which will be displayed of unauthorized login.
- Username – input username.
- Password – input password for the user.
When visitors access to a website using the CDN URL, the browser will prompt them for username and password.