referrerpolicy

요약

이미지의 referrerpolicy="no-referrer" 애트리뷰트를 사용해서 리퍼럴 체크로 외부 링크 금지 이미지에 대해서도 브라우저에서 보여줄 수 있다.

링크

문법

A DOMString representing the referrer policy. Possible values are:
1. "no-referrer" meaning that the Referer: HTTP header will not be sent.
2. "origin" meaning that the referrer will be the origin of the page, that is roughly the scheme, the host and the port.
3. "unsafe-url" meaning that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe as it can leak path information that has been concealed to third-party by using TLS.

예시 소스

<img alt="" referrerpolicy="no-referrer" src="https://mins01.godomall.com/data/skin/front/moment/img/banner/main-banner03.jpg">

예시

1. 고도몰 기본 메인배너01 (외부링크 금지)
2. 고도몰 기본 메인배너03 (외부링크 금지, referrerpolicy="no-referrer" 애드리뷰트 설정)