Category: Blog

photo of person typing on computer keyboard

How remove caps-lock from WordPress comments (retroactively)

There are people, sometimes whole departments of companies, who from the day they buy a keyboard to when they throw it away keep the caps-lock on. I don’t understand them and for this reason i made a plugin to convert everything they write to the correct case. It may come in handy if you have […]

How serve automatically .webp images with Nginx

If your website uses several transparent png images the most convenient and effective optimization is to convert all the media assets to webp format… this will cut heavily the pageload because webp could weigh up to 10% of the original image. There is a way with nginx to hijack the request from standard images formats […]

How to secure the WordPress login panel with fail2bain (and without plugins)

If you are running your own server, it may be useful to create a jail with fail2ban to block attempts to access your blog. (I assume you already have fail2ban installed) Edit the local jails file: sudo nano /etc/fail2ban/jail.local Find the log path for your server (important) NGINX: /var/log/nginx/access.log APACHE: /var/log/apache/access.log add the wp-auth jail: […]

Show a Qr Code on contact form 7 mail submit

This example show how display a  QR code on mail submit with Contact Form 7 For first go to the 3rd tab and edit the success message (the first) adding at the end %%[_date]-[_serial_number] (so the message will look like “success message sent %%[_date]-[_serial_number]”) ref. https://wordpress.org/support/topic/show-qr-code-on-successful-submission/