Category: Blog

How serve automatically .webp images with Nginx

if your site uses transparent png the most convenient optimization is to convert that images to webp because they weigh up to 10% of the original. There is a way with nginx to hijack the request to jpg or png images on the webp version if available Before the beginning of the server block add: […]

i love you wall decor

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/