Jump to content

If i encode HTML Tags will it work?


natasha_thomas

Recommended Posts

Folks,

 

Greetings!

 

I have one bizzare and interesting puzzle cum question:

 

I have one PHP page, which does iframing and redirection. One of the snippet is:

<frameset rows="100%,*" border="0">

 

<frame src="<? echo $thisRedirectUrl; ?>" frameborder="0" />

 

<frame frameborder="0" noresize />

 

So, in the source code of the page tag <frames> will be visible, what i want is, to encode these tages so no one can make out that i used <frames> tag in the page.

 

I believe this is possible with "Escape" and "Uneacape " feature of PHP.

 

What i did was, i took the above code and converted them in equivelent, Escape Codes:

 

%3C%66%72%61%6D%65%73%65%74%20%72%6F%77%73%3D%22%31%30%30%25%2C%2A%22%20%62%6F%72%64%65%72%3D%22%30%22%3E%0A%0A%3C%66%72%61%6D%65%20%73%72%63%3D%22%3C%3F%20%65%63%68%6F%20%24%74%68%69%73%52%65%64%69%72%65%63%74%55%72%6C%3B%20%3F%3E%22%20%66%72%61%6D%65%62%6F%72%64%65%72%3D%22%30%22%20%2F%3E%0A%0A%3C%66%72%61%6D%65%20%66%72%61%6D%65%62%6F%72%64%65%72%3D%22%30%22%20%6E%6F%72%65%73%69%7A%65%20%2F%3E

 

 

I want this code should be visible on the source page than the <frames> tag. Will this be possible to achieve?

 

Anyone Please!

 

Warm Regards

Natasha Thomas

 

 

Link to comment
https://forums.phpfreaks.com/topic/167258-if-i-encode-html-tags-will-it-work/
Share on other sites

Um, you could always add stuff with JavaScript so it doesn't appear in the source. But no matter what you do, anyone with any experience in web development will be able to get the information if they want it bad enough.

 

Why are you trying to hide it?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.