HObfus v2.04
About HObfus

HObfus is a PHP library that allows you to easily obfuscate the HTML code generated by PHP. Simply enclose the code that you want to obfuscate inside a HObfus block and you are all set!

<?php HObfus_begin(); ?>
<div id="obfuscate-me">
	<span class="obfuscate-me">
		<?php echo $obfuscate_me; ?> 
	</span>
</div>
<?php HObfus_end(); ?>

HObfus has a bonus feature that can remove all <script> blocks from the Elements tab of DevTools. This feature makes it very difficult to find the JavaScript code on the page using Developer Tools. For more information about the feature, see $cfg["remove-script"].

Note: HObfus works for UTF-8 encoding files only. If the encoding is not specified, then HObfus automatically sets it to UTF-8, so you don't need to explicitly specify it. All you have to be careful is not to save your PHP files in an encoding other than UTF-8.


« Back
User Guide
Next »
Installation