How to create a free and secure Cloudflare DDNS on Linux

DDNS is a service that automatically updates your DNS records whenever your public IP address changes. It ensures that your chosen domain name always points to your current public IP address, even if it’s dynamic.

You need it if you want to acces your home LAN from outside, most ISPs provide you with a dynamic IP (and IP that changes periodically). That means that everytime your home’s IP it’s changed, you need to find your new IP, manually change every DNS entry. You can get a permanent static IP from your provider, but that comes with an extra-cost.
We don’t want that.
Cloudflare provide us with their awesome free plan.
All we need is a domain, they don’t accept some very specific “free” TLDs that are historically associated with high abuse rates (e.g., .tk, .ml, .ga, .cf, .gq). A bought domain could be a few dollars a year, way less expensive that a static IP and more useful (DDNS is just one of the free benefits provided by Cloudflare).

1. Generate token in My profile → API Tokens → Create Token with Zone.DNS permission for selected DNS zone.*

Note that it is not possible to select only one subdomain and token will have permission to change all DNS entries.

2. Use the following script to update DNS entry automatically on your server and save it as /usr/local/bin/ddns:

#!/bin/bash

# Check for current external IP
IP=`dig +short txt ch whoami.cloudflare @1.0.0.1| tr -d '"'`

# Set Cloudflare API
URL="https://api.cloudflare.com/client/v4/zones/DNS_ZONE_ID/dns_records/DNS_ENTRY_ID"
TOKEN="YOUR_TOKEN_HERE"
NAME="DNS_ENTRY_NAME"

# Connect to Cloudflare
cf() {
curl -X ${1} "${URL}" \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer ${TOKEN}" \
      ${2} ${3}
}

# Get current DNS data
RESULT=$(cf GET)
IP_CF=$(jq -r '.result.content' <<< ${RESULT})

# Compare IPs
if [ "$IP" = "$IP_CF" ]; then
    echo "No change."
else
    RESULT=$(cf PUT --data "{\"type\":\"A\",\"name\":\"${NAME}\",\"content\":\"${IP}\"}")
    echo "DNS updated."
fi

3. Add script to crontab, so it will be executed every minute:

# crontab -e
* * * * * /usr/local/bin/ddns > /dev/null 2>&1
[mai mult...]

Demonstration of “strobelight” technology

With the phasing out of monitors and televisions using cathode ray tube technology, a void was created for users who wanted the ability to clearly see objects or text moving on the screen, being able to distinguish information even at high speeds. Fortunately, for at least 10 years a (partial, but very good) replacement has been developed, namely by implementing “strobe lights” that can turn off and on again 60 times per second (or more often). Next, we will see how this phenomenon can be observed demonstratively on any device with a screen.

[mai mult...]

Wordfence review: why most WordPress sites use it?

After testing and using Wordfence Security on multiple WordPress websites (personal projects), I’m confident in recommending it as a reliable, comprehensive security plugin. It provides strong out-of-the-box protection, an intuitive interface, and real-time insights into threats — all without requiring deep technical knowledge.

I will outline the plugin’s core functionality, highlights from expert sources, and setup experience, to help determine its fit for future WordPress deployments across internal or client-facing sites.

[mai mult...]