ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> Suggestions and Feedback

Put HTML Encoding in ionCube PHP Encoder

Author Message
TRUSTAbyss



Joined: 03 Jul 2007
Posts: 30

PostPosted: Thu Jul 19, 2007 2:01 am    Post subject: Put HTML Encoding in ionCube PHP Encoder Reply with quote

Hello,

I was wondering if in a future version of ionCube, you can encode your HTML within the PHP files. I see that this is not possible at the moment. I like the Free HTML Encoder but I would like to have HTML protection with the ionCube encoder.

Kind regards, Josh
Back to top
View user's profile Send private message
cjunge



Joined: 19 Mar 2006
Posts: 25

PostPosted: Thu Jul 19, 2007 5:42 am    Post subject: Re: Put HTML Encoding in ionCube PHP Encoder Reply with quote

TRUSTAbyss wrote:
Hello,

I was wondering if in a future version of ionCube, you can encode your HTML within the PHP files. I see that this is not possible at the moment. I like the Free HTML Encoder but I would like to have HTML protection with the ionCube encoder.

Kind regards, Josh

I'm not 100% sure what you're requesting, but HTML by it's nature needs to be "unencoded". It can be obfuscated as the HTML Encoder does, but it'll still be able to be unobfuscated if someone wishes.

The IonCube Encoder converts the PHP source into PHP bytecode - a raw form of PHP that the Zend Engine understands but that contains no comments, or any other pretty parts. This encoding can't be applied to the HTML output as there's no bytecode to convert it to.
Back to top
View user's profile Send private message
TRUSTAbyss



Joined: 03 Jul 2007
Posts: 30

PostPosted: Thu Jul 19, 2007 6:07 am    Post subject: Reply with quote

cjunge,

I know that HTML cannot be completely hidden but what I would like to do is add the same functionality as the "ionCube HTML Obfuscator", and I know that it's impossible to completely secure HTML code but I think it would be cool to include something like that in ionCube. It would still make the HTML code 50% secured.

I say 50% secure because advanced programmers can easily crack the JavaScript code.
Back to top
View user's profile Send private message
cjunge



Joined: 19 Mar 2006
Posts: 25

PostPosted: Thu Jul 19, 2007 6:19 am    Post subject: Reply with quote

TRUSTAbyss wrote:
cjunge,

I know that HTML cannot be completely hidden but what I would like to do is add the same functionality as the "ionCube HTML Obfuscator", and I know that it's impossible to completely secure HTML code but I think it would be cool to include something like that in ionCube. It would still make the HTML code 50% secured.

I say 50% secure because advanced programmers can easily crack the JavaScript code.

Ah, I get you now! Why not simply include the HTML Encoder into every file you have? If you're using a common include, including it in there should do the job.

While something like IonCube Encoder *could* do what you want, I can see it causing issues. For one, it would have to add it to every file, which will increase the file size. Also it might add it somewhere when u don't want it.

At the end of the day, if someone wants your HTML then they can get it. I often think that someone wanting to obfuscate their HTML is thinking about it the wrong way. There's not much "unique" stuff in HTML, CSS or JS - highly unlikely that there's any value to it. Hiding it just makes it harder, sometimes harder for someone who might be able to help you. I end avoiding sites that disable right-click, as sometimes I want to open, copy or bookmark a link and can't do that if right-click is disabled. This is like using DRM to protect music - it causes more issues for people who WON'T break it, as the ones who break it will do it no matter what you do.

Oh, and if someone is ripping off your site, then copyright and T&C's should give you a legal standing for hurting them.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Thu Jul 19, 2007 8:14 am    Post subject: Reply with quote

The easiest way is probably to rename the html files as .php. There'll be some performance hit as the HTML files are then pushed through PHP and the obfuscator if it's installed, but it'll work. What you suggested though is consistent with some ideas for possible future features that we have.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> Suggestions and Feedback All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum