📜 ⬆️ ⬇️

Useful tools for web developers

I would just like to share a link to the simplest tools that can help web-developers, facilitating their routine procedures.

Maillink


Almost a year ago there was a need to protect a large number of e-mail addresses from email robots, for subsequent spamming. On this occasion, quickly sketched a page that allows you to encode addresses using JavaScript. The algorithm was taken from the Smarty template engine plugin (for the most inquisitive, I can put the implementation on PHP separately).

Of course he has his drawbacks:
  1. the address will be shown only when javascript is enabled
  2. if the robot has JS support, then it can recognize the hidden e-mail
As for the first one, the JS turned off most likely is paranoia at the time of the web two zero and higher. As for the second, then, as practice has shown, the writers of such spiders are very lazy to try to recognize coded addresses when the network is completely uncoded. So the data algorithm works in most than 99.5% of cases.
')
The page for generating an e-mail link looks like this:

Maillink

MailLink Tool Page

Passwd


Also, it was often necessary to “password-protect” directories on servers, for which one had to expend efforts on generating crypt-passwords, as well as recall and google the password request format in .htaccess files. At one point, laziness was overwhelmed and a page was written to generate the lines in the .htpasswd file.

Passwd tool page

Colormix


Well, and finally, it was often necessary to create lighter or dim tones for additional elements based on the basic color of the site. Previously, I started Photoshop for this, made a fill with the base color, and then exposing the transparency of the layer, “measured” the resulting color. At one point, and it got tired and implemented this simple algorithm on a web page. Now, by entering 2 hex codes of colors, you can get their offset in 10% increments.

Maillink

ColorMix Tool Page

Well, if you have ideas on modernizing existing tools, as well as introducing new ones, I will be glad to hear them, discuss them and ... if they are useful, then of course implement.

PS: Though on Habré for a very long time, but this is my first post. Personally, I would hope not the last. ;)

Source: https://habr.com/ru/post/57179/


All Articles