Skip to content

Instantly share code, notes, and snippets.

View Kevin-free's full-sized avatar
公众号:Kevin的学堂

kevintao1024 Kevin-free

公众号:Kevin的学堂
View GitHub Profile
@levelsio
levelsio / makebook_obfuscate.php
Last active September 3, 2025 16:37
Obfuscate your ebook so that people who didn't pay can read it, partly
<?php
/*
I wrote this function to progressively obfuscate text in MAKEbook.io. When it KINDA worked, I just used it.
It can take a lot of improvement. I kinda just tweaked the values until it was good enough. It's not SO progressive though.
It takes all the output of your PHP scripts via ob_start(), reroutes that to the obfuscation function.
You should check if user paid for book or not, then either run ob_start or not!