Obfuscate webpage which is composed of HTML with PHP snippets

by 3 replies
4
Hi folks,

Previously my website is composed of pure HTML. I use an online obfuscater at http://snapbuilder.com/code_snippet_...l_source_code/

This obfuscator worked fine until I added a simple PHP snippet to dynamically get a parameter from URL address to tag the source to an input field. It looks like the following:

<input type="hidden" name="custom source" value="<? echo $_GET['source']; ?>">

This worked perfect fine after I rename the index.html to index.php. However, after I obfuscate it as what I did before, the php snippet <? echo $_GET['source']; ?> shows itself as it is. No dynamical value is replacing its place.

In this case, how I can obfuscate the HTML source with a php snippet inside it?

Thank you very much for your support!Best Regards
David
#programming #composed #html #obfuscate #php #snippets #webpage
  • Leave the PHP snippet non-obfuscated.
  • yeah, best it just to be careful, and when obfuscating the code, do not obfuscate the PHP code. I have not seen an obfuscator, that allows you exclude certain sections from being obfuscated, so you will need to do these bits manually
  • you can rename your file to .phtml
    and instead of <? use <?php
    i.e. : <?php echo "Hello !"; ?>

Next Topics on Trending Feed