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
|
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
| |
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
|
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
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. |
The Following User Says Thank You to rahmat For This Useful Post: |
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
|
p.s I've seen some designs by you in the 'showcse' thread : very nice work | |
Our Actions Proves What We Really Belive In
| ||
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
|
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. |
| |
The Following User Says Thank You to ghughes For This Useful Post: |
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
|
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.
|
| |
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
|
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
| ||
18th Dec 2011, 10:13 PM | #7 | |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
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. | |
| ||
The Following User Says Thank You to WillR For This Useful Post: |
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
|
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 | |
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
|
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. | |
22nd Dec 2011, 05:12 AM | #10 |
Warrior Member Join Date: 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
If you want to protect the images in the files you encrypt, you should also enable and configure Image Protection .
|
6th Apr 2012, 02:47 PM | #11 |
Zulu Nation Join Date: 2011 Location: skype ctzulu
Posts: 35
Thanks: 1
Thanked 3 Times in 3 Posts
|
dynamicdrive pretty much has everything scramble it |
6th Apr 2012, 03:37 PM | #12 |
HyperActive Warrior War Room Member Join Date: 2011
Posts: 392
Thanks: 143
Thanked 143 Times in 112 Posts
|
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.
|
| |
Bookmarks |
Tags |
code, hide, mobile web site, source |
| |