ampproject / ampproject/amphtml

Prevent downloading images by right-click

Open
#34,665 3 comments 0 reactions 0 assignees View on GitHub
Stale Type: Feature Request
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

To avoid contents abuse, many media services prevent downloading images by right-click on their sites. For non-AMP pages, publishers use background_image CSS property to protect it and prevent right click download. However, for AMP pages, they need to implement the property for each image, and their CSS volume is growing up. Any plans to support the feature in the amp-image component?

### Alternatives Considered

Using background_image CSS property

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the amp-image component and the issue's proposed background_image alternative. Define the intended behavior for AMP images, including how right-click downloading should be handled, then identify the relevant tests and acceptance criteria before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.