Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th Dec 2011, 04:26 PM   #1
Active Warrior
War Room Member
 
Join Date: 2011
Location: Where Warriors Roam
Posts: 93
Thanks: 82
Thanked 13 Times in 13 Posts
Default
How to hide the source code?
Share on: 
fb share twitter share gplus share more share

I was looking for a way to hide the site's source code

is there a diffrent code for html mobile page & for a wp based website?
whrer can it be found?

if there is, & I can hide the sorce code will it affect the google spider regarding the robot.txt for certain pages I want to not been followed
& does it affect the loading time of thw website?

Our Actions Proves What We Really Belive In
LiorN is offline  
Unread 18th Dec 2011, 04:49 PM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2007
Location: Southeast Asia
Posts: 373
Thanks: 34
Thanked 69 Times in 43 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

I think there is no way to hide html source code on your website, since they are required to be downloaded by the browser so that it can show your website to the visitor.

You maybe can add 'no right click' javascript code to 'hide' your source code, but that is not effective for advanced visitor. You can also add many new lines (above the fold) before your html source code, as a decoy being a blank source code.. but that is also not effective if your visitor is really looking into finding your html source code.

Difference between html mobile page & wp based website:
html mobile page has only
  1. html source code and
  2. css
  3. images
while wp based website has
  1. php source code
  2. html source code, and
  3. css
  4. images
On wp based website, your php source code are kept on the server, so your visitor can't see them. While, html source code, css, and images are delivered to the browser, hence visitor can see them.

If you add many blank lines before the source code, it will increase the file-size of the page, and hence it may slow down the loading time of website. You need to test for the extend of slowing down.
rahmat is offline  
The Following User Says Thank You to rahmat For This Useful Post:
Unread 18th Dec 2011, 05:05 PM   #3
Active Warrior
War Room Member
 
Join Date: 2011
Location: Where Warriors Roam
Posts: 93
Thanks: 82
Thanked 13 Times in 13 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by rahmat View Post

I think there is no way to hide html source code on your website, since they are required to be downloaded by the browser so that it can show your website to the visitor.
.
so Rahmat, basically I can go to every mobile website & see it's source code?

p.s
I've seen some designs by you in the 'showcse' thread : very nice work

Our Actions Proves What We Really Belive In
LiorN is offline  
Unread 18th Dec 2011, 06:46 PM   #4
Code Warrior
War Room Member
 
Join Date: 2007
Location: Frisco, TX, USA.
Posts: 25
Thanks: 3
Thanked 3 Times in 3 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

The HTML source code will always be visible unless you use some type of obfuscator. As rahmat said, you can use javascript to disable the right-click menu. This will prevent some novice users from getting to the source code.

When I say the HTML code will be visible, I'm referring to the markup code that actually outputs to the browser. If you use a server-side language, such as PHP, ASP, ASP.net, etc. to generate your site pages, the actual server-side source code will not be visible - only the HTML code that is generated on the server and sent to the browser. This is important because HTML is fairly simple to generate for even novice web developers. The server side code is what you really want to protect since it contains commands to interact with your file system and/or a back-end database.

WordPress was developed using PHP. When you download the WordPress source code, you will be able to see the code that creates a WordPress blog. If you simply open a WordPress blog in the browser and click the "View Source" menu option, you will not see this PHP code. You will only see the HTML code that was generated by the PHP on the server and sent to the browser. Basically, no one can copy your blog simply by copying the code they can see in the browser. They would have to get to your server to obtain your PHP files.

If you really want to prevent anyone from viewing your HTML files, search the internet for "HTML obfuscator" or "web code obfuscator." You should find plenty of resources for encrypting the code to prevent visitors from seeing your code.

If you develop website code with PHP, and you wish to sell the system you've created, you may want to look at a product like Zend to encode your PHP source code. This will allow you to distribute your product without risking your end users reselling your code.

Gary Hughes
IT Services of Texas
www.completesolutions.com
ghughes is offline  
The Following User Says Thank You to ghughes For This Useful Post:
Unread 18th Dec 2011, 06:48 PM   #5
Code Warrior
War Room Member
 
Join Date: 2007
Location: Frisco, TX, USA.
Posts: 25
Thanks: 3
Thanked 3 Times in 3 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

Note that I referenced WordPress just as an example of a web product that was developed using PHP. Mobile sites are developed using a variety of languages, including PHP.

Gary Hughes
IT Services of Texas
www.completesolutions.com
ghughes is offline  
Unread 18th Dec 2011, 07:11 PM   #6
Active Warrior
War Room Member
 
Join Date: 2011
Location: Where Warriors Roam
Posts: 93
Thanks: 82
Thanked 13 Times in 13 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by ghughes View Post

Note that I referenced WordPress just as an example of a web product that was developed using PHP. Mobile sites are developed using a variety of languages, including PHP.
WoW
Thanks Gary

I read it 3 times & what Rahmat wrote as well
& I understand and appreciate your well explained answer

Had no idea that you can create mobile web page with php (not that I know php)

I learned alot from both of your answers

Our Actions Proves What We Really Belive In
LiorN is offline  
Unread 18th Dec 2011, 10:13 PM   #7
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Ricki Roma View Post

WoW
Thanks Gary

I read it 3 times & what Rahmat wrote as well
& I understand and appreciate your well explained answer

Had no idea that you can create mobile web page with php (not that I know php)

I learned alot from both of your answers
You can create a mobile webpage using php, and that's what I do, however that is not going to stop someone stealing your design. The php code is mainly used to pull certain information from different files. Once the site displays to the visitor all the php code has been executed so they could still just view the page source and use the code they see.

Personally I wouldn't worry about this and I don't see it being a big problem. If someone wants to steal something they will find a way of doing it. If they can't steal yours it doesn't mean they will then purchase a design from you, it just means they will go and steal a design from elsewhere. Just concentrate on getting more customers as that's where the real money is - not worrying about little things like this.

WillR is offline  
The Following User Says Thank You to WillR For This Useful Post:
Unread 18th Dec 2011, 11:27 PM   #8
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 216
Thanks: 77
Thanked 33 Times in 24 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

I wouldn't worry about it focus on building your business. If someone wants your design look at it as a compliment to your excellent talent. Even if you could protect it there would be someone who could get around it anyway.

Everything online gets ripped off, web content, web design, programs, wso's, mp3, mp4, everything. Not saying its right, it just is.

Do You Do Local Lead Gen? Hate Cold Calling for New Clients? We Have the Solution.. Get Hot Offline Leads Today... These Leads WANT to hear from YOU!

Sign Up Today and Get Clients!Local Lead Gen Leads
bryson is offline  
Unread 19th Dec 2011, 05:40 AM   #9
HyperActive Warrior
War Room Member
 
Join Date: 2007
Location: Southeast Asia
Posts: 373
Thanks: 34
Thanked 69 Times in 43 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by LiorN View Post

so Rahmat, basically I can go to every mobile website & see it's source code?

p.s
I've seen some designs by you in the 'showcse' thread : very nice work
Hi LiorN,

Yes, you can see the html source code.

If the website owner uses html obfuscator, you will only see random gibberish code. But advanced user can still decode that.

p.s.: no.. the screenshot in the showcase is not my design. I just posted the screen capture of mobile site developed by others.
rahmat is offline  
Unread 22nd Dec 2011, 05:12 AM   #10
Warrior Member
 
Join Date: 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

If you want to protect the images in the files you encrypt, you should also enable and configure Image Protection .
kavinb3netmobi is offline  
Unread 6th Apr 2012, 02:47 PM   #11
Zulu Nation
 
ctzulu's Avatar
 
Join Date: 2011
Location: skype ctzulu
Posts: 35
Thanks: 1
Thanked 3 Times in 3 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

dynamicdrive pretty much has everything

scramble it
ctzulu is offline  
Unread 6th Apr 2012, 03:37 PM   #12
HyperActive Warrior
War Room Member
 
Micah Medina's Avatar
 
Join Date: 2011
Posts: 392
Thanks: 143
Thanked 143 Times in 112 Posts
Default
Re: How to hide the source code?
Share on: 
fb share twitter share gplus share more share

Don't worry about HTML theft. Somebody who has the time to do that isn't making enough money to really be a threat to you.



Micah Medina is offline  
Closed Thread


Bookmarks

Tags
code, hide, mobile web site, source


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




All times are GMT -6. The time now is 02:14 AM.