Answer the question
In order to leave comments, you need to log in
How to track the sources (sites) from which copy-paste was made to my page?
There is a current task on the functionality of the system, it is necessary that when inserting text from another site, along with the content, get the address of the page from which the site was received. An attempt to implement an internal "browser" on my page using an iframe has come to a standstill, because access restrictions on the window and document iframe do not allow either to track the copy event or get the current link.
While I'm considering two other options:
1. Make a proxy page on my domain, and open it in an iframe to bypass the restrictions.
But I'm not at all sure about the quality of such a solution, and that it will work satisfactorily
2. Browser Plugin
Can anyone suggest a solution?
Answer the question
In order to leave comments, you need to log in
If your project is a convenient mechanism for copy-paste, then the best thing to recommend here is to implement the functionality in the form of a plug-in for browsers.
Let it be optional, but its users will be provided with goodies. Let it be 1-click install. No need to mess around with buffer parsing and so on… just provide the tools to conveniently specify the copied text on the pages.
and javascript has nothing to do with it, it's more systemic.
I would try to write some kind of software that would monitor an attempt to copy something to the clipboard, look at open browser tabs, try to get the open-current one, gnaw out the url and add it to the text that is copied. If punto switcher can save texts from the clipboard to a text file, who prevents ctrl-c / ctrl-x from adding more functionality?
Browser plugins can be heavily sandboxed and won't let you get far. It’s easier than a tulzovinka hanging in the tray
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question