I'll try answer your question if I understood it correctly.
Answer #1 (client-side)
Answer #2 (server-side)
If you're asking your questions as a server admin (server side) to try to detect whether the click was performed by human being or from a bot. Then, I can't help you. This is basically a bot/web-scrapping detection issue which probably involves request traffic analysis.
Sample issue/post: https://stackoverflow.com/questions/5372115/the-way-to-detect-web-scraping