徐亦立
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Cookie life time analysis --- ## Background ### Safari #### ITP 介紹 #### Privacy Preserving Ad Click Attribution For the Web * Announced Date : 2019/05/22 * 原則 * 用戶不得因為點擊廣告而被跨站辨識身份 * 只有用戶親自造訪的網站才可以取得廣告點擊和轉換資料 * 瀏覽器在通報廣告點擊的過程,應代替用戶、儘力確保用戶隱私 * 隱私考量政策 * 只有在第一方網頁上投放的鏈接才能存儲廣告點擊的數據。這可確保用戶有機會了解隱私保護廣告點擊歸因的工作原理。 * 廣告點擊發生的網站和發生轉化的網站(廣告主)都不應該能夠查看廣告點擊數據是否已存儲,已匹配(matched)或已安排報告。 * 廣告點擊只應存儲一段有限的時間,例如一周。用戶今天所做的購買不應歸因於他們幾個月前的廣告點擊。 * 廣告主只能紀錄最多64個不同的campaign ID和Conversion data,因此無法重新利用此數據以進行用戶跨站追蹤。 * 廣告點擊資料request應在24至48小時內隨機延遲。這可確保在廣告點擊後短時間內發生的conversion不能被用來跨站分析。 * 為了避免對用戶的跨站追蹤,瀏覽器不應保證任何廣告點擊資料請求的順序。 * 瀏覽器應使私人或隱身模式(ephemeral session),來製作廣告點擊資料。 * 瀏覽器不應取得或使用任何身份憑據,例如Cookie, client certificates,或廣告點擊request/resoense中的Basic Authentication * 瀏覽器應該提供一種打開和關閉廣告點擊資訊的方法。我們打算將default設置此政策,鼓勵網站捨棄一般的跨站追蹤。 * 瀏覽器不應在私人/隱身模式下蒐集用戶的廣告點擊資料。 * ref : * https://webkit.org/blog/8943/privacy-preserving-ad-click-attribution-for-the-web/ * https://www.ithome.com.tw/news/130844 #### Intelligent Tracking Prevention * Announced Date : 2017/06/05 * 情境: 1. ITP將example.com標示為有能力跨站追蹤用戶的domain 2. 若用戶超過30天沒有訪問 example.com,其資料和cookie會被消滅 3. 其他狀況下,cookie會依照下圖的時間線改變權限![](https://i.imgur.com/ZXrSYOq.png) * note: 如果在一~三十天的時間造訪,會得到partition過後的cookie,以確保用戶的登入,同時避免跨站追蹤 * 結論: * 用戶的cookie和資料只會在持續互動的網站上是永久的 * 追蹤資料會在瀏覽網站時被主動移除 * ref: * https://webkit.org/blog/7675/intelligent-tracking-prevention/ #### Intelligent Tracking Prevention 2.0 * Announced Date : 2018/06/04 * 只有partitioned cookie被紀錄,用來被特定的API取用資訊![](https://i.imgur.com/2Z3tqNQ.png) * 情境![](https://i.imgur.com/9uu20Dk.png) * ref: * https://webkit.org/blog/8311/intelligent-tracking-prevention-2-0/ #### Intelligent Tracking Prevention 2.2 * Released Version: iOS 12.3 and Safari on macOS Mojave 10.14.5 * Released Date: * iOS 12.3 : 2019/5/14 * macOS Mojave 10.14.5 : 2019/5/14 * 主旨:當滿足下列兩條件時,(目前網站)cookie只會有一天的壽命 * 一個(被分類為有能力)跨站追蹤的domain負責導引用戶到目前的網站時 * 導引到的url最後包含了query string 或fragment identifier(Link Decoration) ![](https://i.imgur.com/xSb0a8R.png) * 情境: 1. The website social.example has been classified by ITP as having cross-site tracking capabilities. 2. The user clicks a link on social.example. 3. The click results in a cross-site navigation that lands on shop.example and the landing URL has a query string and/or a fragment identifier. 4. The shop.example webpage sets a persistent cookie through document.cookie. This cookie will now have a maximum expiry of one day. * ref: * https://webkit.org/blog/8828/intelligent-tracking-prevention-2-2/ ### Google(still planing on May) * enable users to clear all such cookies while leaving single domain cookies unaffected * protecting cookies from cross-site injection and data disclosure attacks like Spectre and CSRF by default * developers need to explicitly specify which cookies are allowed to work across websites #### 反ITP流程 * google在用戶點擊廣告時在url最後加上一段unique的GCLID(每一次的點擊都會產生新的)讓第三方紀錄 * 廣告主也將每天蒐集到的GCLID給第三方追蹤 Q:google給的cookieID和宇匯的cookieID是否一致? * https://zhuanlan.zhihu.com/p/30515285

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully