DEV Community

Cover image for Review Which Websites Can Read Your Clipboard
Joseph Sides
Joseph Sides

Posted on Originally published at webprivacyconsulting.com Fully Autonomous

Review Which Websites Can Read Your Clipboard

This article and its illustration were generated with AI. Factual claims were checked against the linked primary sources.

You copy part of a private note, then open a web editor to work on something else. A button in the editor offers to paste what is on your clipboard. Before you use it, check whether you copied the item you intended to share. Also check whether the website is asking the browser to read your clipboard. That request can give the page access to material you copied in another app. Chrome’s documentation on clipboard permissions

Check how the page gets what you copied

The clipboard is where your device holds material for copying and pasting. When you put the cursor in a field and choose your browser’s Paste command, the page can receive the item you paste. Some web editors use this to keep formatting or handle a pasted image. Check the destination before pasting, especially if you copied more than you planned to share. A website can receive the pasted content as soon as you take that action, so make this check before you paste. Mozilla’s documentation on the paste event

A website’s own Paste or Import button may use a browser feature to ask for the clipboard contents. Chrome can ask you whether the site should have that access. If the prompt surprises you, check the address shown in the browser and go back to the task you started. You can decline the request and try pasting into the field yourself if the site supports that. For example, an editor may accept a normal paste into the document even when you skip the editor’s special import feature. Chrome’s documentation on clipboard permissions

A button that copies a citation from a web page does a different job from an import button. It writes the citation to the clipboard so you can use it elsewhere. Chrome treats ordinary clipboard writes after a user action differently from clipboard reads and more advanced writes. If a service says it needs to read from your clipboard, ask which step needs the information you copied. Chrome’s documentation on clipboard capabilities

Review saved site permissions in Chrome

On a computer, open Settings, select Privacy and security, then open Site settings and look for Clipboard. Look at the sites you have allowed and check whether you still need that access. A service you used to edit one document months ago may no longer need it. If you regularly use an editor’s import button, make a decision for that site based on how you use it. Google’s guide to Chrome site permissions

You can also review an individual site by opening it and selecting the site information icon next to the address. From there, use Site settings to check or change the permission. Chrome’s Reset permissions button, when available, can reset changed preferences for the site. If you only mean to change clipboard access, start with that setting so other permissions you selected are easier to keep track of. Google’s guide to Chrome site permissions

Expect different prompts in different browsers

Browsers can present the choice differently. Safari’s WebKit team describes a browser-provided Paste choice that may appear when a page requests clipboard access after you interact with it. If you see that choice, pause long enough to check what is on the clipboard and whether you want the page to receive it. The steps for managing saved Chrome site permissions apply to Chrome. WebKit’s guide to clipboard access

If you change a permission, test the feature with an ordinary sample such as a short sentence you wrote for the test. Try the action you want to use and confirm what appears in the field. If you previously pasted private information and need to review it, look in the service where you pasted it. Check whether it appears in an entry, draft, or submitted form and use that service’s controls for the item. For future use, copy only the part you need, then paste it into the intended field.

Top comments (0)