Languages
[Edit]
EN

JavaScript - display security warning for non-programmers in web browser console

1 points
Created by:
Root-ssh
178170

In this article, we would like to show how to print security warnings in the web browser console that warns non-programmers about dangers caused by pasting, copying, or executing some code there.

Security warning in the web browser for non-programmers.
Security warning in the web browser for non-programmers.

Note: console.log() print was formatted with styles / CSS.

Practical example:

See also

Edit
  1. JavaScript - style console.log() 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join