doc-exports/docs/obs/umn/obs_03_0341.html
zhangyue b55201d729 OBS UMN DOC
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2024-03-18 15:39:30 +00:00

22 lines
4.8 KiB
HTML

<a name="obs_03_0341"></a><a name="obs_03_0341"></a>
<h1 class="topictitle1">Configuring URL Validation</h1>
<div id="body1499753333227"><p id="obs_03_0341__p54693607">OBS blocks access requests from blacklisted URLs and allows those from whitelisted URLs.</p>
<div class="section" id="obs_03_0341__section48948668114148"><h4 class="sectiontitle">Prerequisites</h4><p id="obs_03_0341__p5419211114148">Static website hosting has been enabled.</p>
</div>
<div class="section" id="obs_03_0341__section6430701414453"><h4 class="sectiontitle">Procedure</h4><ol id="obs_03_0341__ol4189221614453"><li id="obs_03_0341__li99821455306"><span>In the bucket list, click the bucket you want to operate. The <strong id="obs_03_0341__obs_03_0307_b144421021120">Overview</strong> page is displayed.</span></li><li id="obs_03_0341__li18830181855820"><span>In the <strong id="obs_03_0341__b383843419398">Basic Configurations</strong> area, click <strong id="obs_03_0341__b710962963910">URL Validation</strong>. The <strong id="obs_03_0341__b12969820203915">URL Validation</strong> page is displayed.</span></li><li id="obs_03_0341__li77884511145"><span>Click <span><img id="obs_03_0341__image11167185317519" src="en-us_image_0148639849.png"></span> next to the text box of <strong id="obs_03_0341__b192115351205">Whitelisted Referers</strong> or <strong id="obs_03_0341__b7922203502010">Blacklisted Referers</strong>, and enter the referers.</span><p><p id="obs_03_0341__p1371658101719">Principles for setting <strong id="obs_03_0341__b923224378153658">Referers</strong>:</p>
<ul id="obs_03_0341__ul121103404243"><li id="obs_03_0341__li2923104018269">The length of a whitelist or blacklist cannot exceed 1024 characters.</li><li id="obs_03_0341__li6240345182114">Referer format:<ul id="obs_03_0341__ul576834602113"><li id="obs_03_0341__li01111340102413">You can enter multiple referers, each in a line.</li><li id="obs_03_0341__li18468729228">The referer parameter supports asterisks (*) and question marks (?). An asterisk works as a wildcard that can replace zero or multiple characters, and a question mark (?) can replace a single character.</li><li id="obs_03_0341__li9406166205718">If the referer header field contains <strong id="obs_03_0341__b37721240165417">http</strong> or <strong id="obs_03_0341__b1595504213547">https</strong> during download, the referer must contain <strong id="obs_03_0341__b143516558548">http</strong> or <strong id="obs_03_0341__b79222562542">https</strong>.</li></ul>
</li><li id="obs_03_0341__li711134011241">If <strong id="obs_03_0341__b876212515103">Whitelisted Referers</strong> is left blank but <strong id="obs_03_0341__b10762115116101">Blacklisted Referers</strong> is not, all websites except those specified in the blacklist are allowed to access data in the target bucket.</li><li id="obs_03_0341__li161121440142416">If <strong id="obs_03_0341__b878830101114">Whitelisted Referers</strong> is not left blank, only the websites specified in the whitelist are allowed to access the target bucket no matter whether <strong id="obs_03_0341__b1579420021115">Blacklisted Referers</strong> is left blank or not.</li></ul>
<div class="note" id="obs_03_0341__note94987112510"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="obs_03_0341__p1549881182517">If <strong id="obs_03_0341__b1691643919117">Whitelisted Referers</strong> is configured the same as <strong id="obs_03_0341__b1792211392111">Blacklisted Referers</strong>, the blacklist takes effect. For example, if both <strong id="obs_03_0341__b1951459181116">Whitelisted Referers</strong> and <strong id="obs_03_0341__b2095818597112">Blacklisted Referers</strong> are set to <strong id="obs_03_0341__b795865981113">https://www.example.com</strong>, access requests from this address will be blocked.</p>
</div></div>
<ul id="obs_03_0341__ul1315578192618"><li id="obs_03_0341__li115518142614">If <strong id="obs_03_0341__b1640603071210">Whitelisted Referers</strong> and <strong id="obs_03_0341__b13412123031219">Blacklisted Referers</strong> are both left blank, all websites are allowed to access data in the target bucket by default.</li><li id="obs_03_0341__li615788102612">Before determining whether a user has the four types of permissions (read, write, ACL read, and ACL write) for a bucket or objects in the bucket, check whether this user complies with the URL validation principles of the <strong id="obs_03_0341__b5357104510126">Referer</strong> field.</li></ul>
</p></li><li id="obs_03_0341__li15291204011273"><span>Click <span><img id="obs_03_0341__image339729105016" src="en-us_image_0148639851.png"></span> to save the settings.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0340.html">URL Validation</a></div>
</div>
</div>