Course contentsShow
← Web Development
Lesson 2963 of 2,98253. Privacy and ComplianceFree lesson

Do Not Sell My Data Requests

Create UI for CCPA-compliant opt-out mechanisms and "Do Not Sell My Personal Information" links.

Do Not Sell My Data Requests

You'll learn how to build CCPA-compliant user interfaces that allow users to opt out of personal data sales, including the required "Do Not Sell My Personal Information" link.

What This Requirement Means

Under the California Consumer Privacy Act (CCPA), businesses that sell personal information must provide a clear and conspicuous link labeled "Do Not Sell My Personal Information" on their website's homepage. Think of it like a legally-mandated emergency exit sign — it must be visible, unambiguous, and easy to find.

Core Implementation Requirements

The Mandatory Link

You must place a link with exact wording (or the approved icon alternative) in a prominent location:

<footer>
  <nav aria-label="Legal and Privacy">
    <a href="/do-not-sell" class="privacy-link">
      Do Not Sell My Personal Information
    </a>
    <a href="/privacy">Privacy Policy</a>
    <a href="/terms">Terms of Service</a>
  </nav>
</footer>

The Opt-Out Page

Create a dedicated page where users can submit their request without creating an account (if they don't have one):

<form action="/api/opt-out" method="POST">
  <h1>Do Not Sell My Personal Information</h1>
  <p>You have the right to opt out of the sale of your personal information.</p>
  
  <label for="email">Email Address</label>
  <input type="email" id="email" name="email" required>
  
  <button type="submit">Submit Request</button>
</form>

Visual Prominence

Ensure the link stands out without needing special knowledge to find it. Use clear typography and sufficient contrast to meet WCAG standards.

Key Takeaway: CCPA compliance requires a clearly visible "Do Not Sell My Personal Information" link on your homepage that leads to a straightforward opt-out mechanism requiring minimal user effort.