loading...

Discussion on: Front-end Challenge: Prevent Clicks

Collapse
entrptaher profile image
Md. Abu Taher 👨‍💻 Author

Great answer.

I have two questions,

  • How did you come up with this idea of putting a viewport "mask"?
  • Approximately how long did it take to find and write the above two solutions?
Collapse
abhishekcghosh profile image
Abhishek Ghosh

Thanks!

Well.. I believe this is textbook clickjacking :P

I think about 5 minutes of trying out stuff on the dev tools. I didn't actually have to go searching for answer somewhere. I should tell that I was lucky though, to actually detect on this page with the youtube link and input box and that the first method does not work, so I naturally shifted attention trying out the alternate.

Thread Thread
entrptaher profile image
Md. Abu Taher 👨‍💻 Author

5 minutes and textbook clickjacking 👍 .

Those who searched for blocking events would get "event.preventDefault" no matter how much they want to search.

Just a little different search term, specially a common term that they never thought of, would result in a obviously common way.

I will post my solution used in the video later on :D .

I highly suggest others to try out different solutions other than these two already submitted.

Thread Thread
abhishekcghosh profile image
Abhishek Ghosh

Nice! Eager to see other approaches that you may have had :)