Featured Articles

black and brown industrial machine

WordPress

Gutenberg block for adding AdSense ads

A Gutenberg block for inserting Google AdSense ads into posts. Vibe coding WordPress plugins: I used Google Gemini to create a WordPress Block Editor block which inserts an Adsense ad automatically after the more tag. And wherever you want an advertisement to appear. Sweet! (-:


Latest articles

WordPress

Last updated:

Delete spam comments after three (3) days

How to change Akismet interval to three days instead of 15 days for deleting spam comments using the akismet_delete_comment_interval filter.

Anime Dude with Retro-futuristic Jetpack Soaring Above Neon-lit Cityscape

WordPress

Last updated:

Remove Jetpack email sharing service

Remove Jetpack email sharing service using WordPress plugin or theme functions.php file. It's often abused by spammers

WordPress

Last updated:

Clear PHP opcode caches before WordPress Updates: ease the updating process

Clear PHP opcode caches before WordPress core-, plugin- and theme updates are applied, easing the updating process. Popular PHP opcode caches are OPcache, WinCache and APC. This little WordPress Must Use Plugin tries to flush opcode caches, making your live a bit easier when updating WordPress Core, Plugins and Themes.

silver pocket watch at 10 00

WordPress

Last updated:

Measure WordPress loading time and queries

How to measure WordPress loading time and executed database queries? During an HTTP request, WordPress executes a lot of queries on your MySQL database. Not just the database queries take time, also loading and executing PHP takes time.

Web applications

Last updated:

The WinCache effect: Save with object caching

WinCache's object cache backend for WordPress on IIS cut the number of database queries per page from 31 to 12 and lowered the page generation time.

Security

Last updated:

"How we broke PHP, hacked Pornhub and earned $20,000"

It all started by auditing Pornhub, then PHP and ended in breaking both… We have gained remote code execution on pornhub.com and have earned a $20,000 bug bounty on Hackerone. We have found two use-after-free vulnerabilities in PHP's garbage collection algorithm. Those vulnerabilities were remotely exploitable over PHP's unserialize function.

Security

Last updated:

Cracking PHP rand()

A very interesting read about how PHP rand() works, how to attack and crack it, and why you must not use it for security tokens.

Keys

Useful

Last updated:

Generate pseudorandom passwords with OpenSSL

OpenSSL comes in handy when you need to generate passwords or random strings. For example for system accounts and services. In this short post I'll give you a quick example on how to generate random passwords with OpenSSL in Linux (Bash), Windows and PHP.