Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP encrypt html output??
Old 09-02-2008, 09:10 PM PHP encrypt html output??
Novice Talker

Posts: 7
Name: Mike
Trades: 0
Hi anybody know how to get PHP to encrypt HTML output when generating dynamic pages?

Cheers,
Mike
rssniches is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-02-2008, 09:36 PM Re: PHP encrypt html output??
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
why? ..
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-02-2008, 10:03 PM Re: PHP encrypt html output??
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I've thought of lots of stupid ways to do it, when I am bored. Of course, they are all equally pointless and insecure.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-03-2008, 02:00 AM Re: PHP encrypt html output??
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
The best way to secure a website is to pull out the ethernet cable.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 09-03-2008, 06:58 AM Re: PHP encrypt html output??
Novice Talker

Posts: 7
Name: Mike
Trades: 0
I thought that might be the kind of reply a question like that deserves .. LOL!!!
But needed a quick way to hide html source to deter the novice from looking at it.

Cheers
rssniches is offline
Reply With Quote
View Public Profile
 
Old 09-03-2008, 10:07 AM Re: PHP encrypt html output??
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
You mean like this?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-03-2008, 10:23 AM Re: PHP encrypt html output??
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
If you use javascript to write to the DOM, the code will not be visible with right click, of course with a DOM examiner they could still find it, but then if you were to scramble it with 512 bit encryption they could still break your door down, tie you up and torture you until you gave it up. But then what is pointless here? The browser must be able to read code, hence the user must be able to read code. DOM is about best security you have for code.

By the By Wayfarer:

Code:
 
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Alexandra Rose Lee - Unique Weddings and Creative Occasions</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK href="css/master.css" type=text/css rel=stylesheet></HEAD>
<BODY id=insert>
<DIV id=ribbon></DIV>
<DIV id=top></DIV>
<DIV id=wrapper>
<DIV id=page>
<DIV id=header>
<UL id=nav>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Home</A></LI>
<LI class=dot>&nbsp;&nbsp;</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">About Us</A></LI>
<LI class=dot>&nbsp;&nbsp;</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Services</A></LI>
<LI class=dot>&nbsp;&nbsp;</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Testimonials</A></LI>
<LI class=dot>&nbsp;&nbsp;</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Pricing</A></LI>
<LI class=dot>&nbsp;&nbsp;</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Contact Us</A></LI></UL></DIV>
<DIV class=main>
<H1>Professional Event Planning</H1>
<P>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas pellentesque. Phasellus leo tellus, euismod at, pulvinar quis, condimentum non, dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vestibulum pulvinar purus vel elit. Duis convallis. Suspendisse sollicitudin, sapien a posuere vulputate, libero ligula congue ipsum, ac aliquet felis tortor hendrerit neque.</P>
<P>Phasellus quis dui. Duis nulla. In a dolor. Curabitur venenatis purus eleifend nulla. Morbi et orci. Etiam lacinia, lectus vitae tristique dictum <A href="http://wayfarerweb.com/mockups/event_planner/#">felis facilisis dui</A> ut congue nibh tellus ac lectus. Morbi malesuada justo quis odio lacinia volutpat. Fusce non mi quis lectus elementum vestibulum. Aenean eget erat.</P>
<P><Q><EM class=slogan>It is my promise to give every client, on any budget, an elegant affair and the event they have always dreamed of.</EM></Q></P>
<P><EM class=name>~ Alexandra Rose Lee</EM></P></DIV>
<DIV class=secondary><IMG alt=presentation src="http://wayfarerweb.com/mockups/event_planner/images/pic01.jpg"></DIV></DIV></DIV><!--end of wrapper-->
<DIV id=bottom></DIV>
<DIV id=footer>
<DIV class=inner>
<UL id=footnav>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Home</A></LI>
<LI>|</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">About Us</A></LI>
<LI>|</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Services</A></LI>
<LI>|</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Testimonials</A></LI>
<LI>|</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Pricing</A></LI>
<LI>|</LI>
<LI><A href="http://wayfarerweb.com/mockups/event_planner/#">Contact Us</A><BR></LI>
<LI>Copyright 2008 Alexandra Rose Lee. All Rights Reserved.</LI></UL><A id=bbb href="http://wayfarerweb.com/mockups/event_planner/#"><IMG alt="Better Business Bureau" src="http://wayfarerweb.com/mockups/event_planner/images/bbb.jpg"></A><A id=bridal href="http://wayfarerweb.com/mockups/event_planner/#"><IMG alt="Association of Bridal Consultants" src="http://wayfarerweb.com/mockups/event_planner/images/bridal.jpg"></A></DIV></DIV></BODY></HTML>

Last edited by Sleeping Troll; 09-03-2008 at 11:13 AM..
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Old 09-03-2008, 11:16 AM Re: PHP encrypt html output??
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
I've thought of lots of stupid ways to do it, when I am bored. Of course, they are all equally pointless and insecure.
Like I said...
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to PHP encrypt html output??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29642 seconds with 12 queries