{"id":22611493,"url":"https://github.com/adityavijay21/copyinterceptor","last_synced_at":"2026-02-06T14:13:26.067Z","repository":{"id":265373628,"uuid":"895869462","full_name":"adityavijay21/copyinterceptor","owner":"adityavijay21","description":"A React component to block text copying and notify users with a toast message.  ","archived":false,"fork":false,"pushed_at":"2024-12-06T02:48:28.000Z","size":360,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T08:37:37.658Z","etag":null,"topics":["clipboard-blocker","copy-prevention","react","react-components","react-toastify","toast-notifications"],"latest_commit_sha":null,"homepage":"https://copyinterceptor.onrender.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adityavijay21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-29T04:42:31.000Z","updated_at":"2024-11-29T05:21:12.000Z","dependencies_parsed_at":"2025-04-11T08:34:22.962Z","dependency_job_id":null,"html_url":"https://github.com/adityavijay21/copyinterceptor","commit_stats":null,"previous_names":["adityavijay21/copyinterceptor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adityavijay21/copyinterceptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavijay21%2Fcopyinterceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavijay21%2Fcopyinterceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavijay21%2Fcopyinterceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavijay21%2Fcopyinterceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityavijay21","download_url":"https://codeload.github.com/adityavijay21/copyinterceptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavijay21%2Fcopyinterceptor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265094579,"owners_count":23710507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clipboard-blocker","copy-prevention","react","react-components","react-toastify","toast-notifications"],"created_at":"2024-12-08T16:11:17.873Z","updated_at":"2026-02-06T14:13:21.042Z","avatar_url":"https://github.com/adityavijay21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# CopyInterceptor  \n\nCopyInterceptor is a React component designed to prevent users from copying text on your website. It intercepts copy events and displays a toast notification using `react-toastify`.  \n\n## Features  \n\n- **Restricts Copying**: Prevents users from copying content on your webpage.  \n- **Toast Notification**: Displays a notification whenever a copy attempt is made.  \n- **User-Friendly**: Built with `react-toastify` for smooth and customizable notifications.  \n\n## How It Works  \n\nThe component listens for the `copy` event on the document. When triggered, it prevents the default copy action and shows a toast notification informing the user that copying is restricted.  \n\n## Setup  \n\n### Prerequisites  \n\nMake sure you have React and `react-toastify` installed in your project:  \n\n```bash  \nnpm install react-toastify  \n```  \n\n### Installation  \n\nDownload or clone this repository:  \n\n```bash  \ngit clone https://github.com/adityavijay21/copy-text-interceptor.git  \n```  \n\n### Usage  \n\nInclude the `CopyTextInterceptor` component in your project:  \n\n```jsx  \nimport React from 'react';  \nimport CopyTextInterceptor from './CopyTextInterceptor';  \n\nconst App = () =\u003e (  \n  \u003cdiv\u003e  \n    \u003ch1\u003eWelcome to My Website\u003c/h1\u003e  \n    \u003cp\u003eThis is some text that users cannot copy!\u003c/p\u003e  \n    \u003cCopyTextInterceptor /\u003e  \n  \u003c/div\u003e  \n);  \n\nexport default App;  \n```  \n\n## Customization  \n\nThe toast notification uses `react-toastify`. You can customize its appearance by modifying the toast settings in the component.  \n\n## Contributing  \n\nContributions are welcome! Feel free to fork the repository, open issues, or submit pull requests to enhance functionality or fix bugs.  \n\n## License  \n\nThis project is licensed under the [MIT License](LICENSE).  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityavijay21%2Fcopyinterceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityavijay21%2Fcopyinterceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityavijay21%2Fcopyinterceptor/lists"}