Internet Marketing Forum

Navigation: Make Money Online SEO Service Internet Marketing Forum Free Software Contact Us


Advanced search
  • Board index ‹ Website Development ‹ Coding
  • Change font size
  • Print view
   
  • Register
  • Login
Anything that has to do with website coding, HTML, XHTML, DHTML, CSS, PHP, PERL, ASP, ColdFusion, C++ and so on.
Post a reply
12 posts • Page 1 of 1

Hiding HTML

Postby Yeahmeto on Wed Apr 16, 2008 10:34 pm

Is there a way to hide the HTML of a website so you can't view it through right click?
Yeahmeto
 
Posts: 10
Joined: Mon Apr 07, 2008 12:41 am
Top

Re: Hiding HTML

Postby LinkBuildingBible on Wed Apr 16, 2008 10:42 pm

Nope.... what exactly are you wanting to hide?

If you want to hide auto-generating HTML, and just display the produced HTML, do it within a php file, and use php include in another file... actually, as i think about it, you could do that with just regular HTML.

But, whatever the site is displaying currently, anyone can see that with their browser.
Link Building Bible
User avatar
LinkBuildingBible
 
Posts: 215
Joined: Mon Apr 14, 2008 2:40 pm
Location: LinkBuildingBible.com
  • Website
  • YIM
Top

Re: Hiding HTML

Postby ddave on Thu Apr 17, 2008 7:56 am

How about disabling the right click feature. I do not know if there is a way around this but I have ever seen this message on a website "right clicking is disabled" when I right clicked.

Could this be the work of Javascript?
Internet Marketing Point Of Interest Blog

Massive List Of Article Directories
User avatar
ddave
 
Posts: 72
Joined: Mon Apr 14, 2008 7:33 pm
  • Website
Top

Re: Hiding HTML

Postby Batmeds on Thu Apr 17, 2008 2:58 pm

Yes you can hide the source code several ways.

First you can use the disable right click code
Code: Select all
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>


This is easy to get around though all you have to do is go to a website like http://www.selfseo.com/html_source_view.php and type in the web address

The second method is to use a tool that encrypts the code. There are free tools like http://www.designerwiz.com/mf.htm?http& ... ptHTML.htm
I Don't Promote I Provide
Batmeds
 
Posts: 114
Joined: Mon Apr 07, 2008 12:41 am
Top

Re: Hiding HTML

Postby LinkBuildingBible on Fri Apr 18, 2008 11:31 am

I also use a firefox add-on that allows the right click context menu to popup even when there is the right-click protection. But, many regular users don't know about such things.

Also, if it's just for viewing the source, many browsers have the "view source" opportunity in their top toolbar, not just in the right click menu.

So yah, it will deter some people, but any tech savvy people can get around it.
Link Building Bible
User avatar
LinkBuildingBible
 
Posts: 215
Joined: Mon Apr 14, 2008 2:40 pm
Location: LinkBuildingBible.com
  • Website
  • YIM
Top

Re: Hiding HTML

Postby Trusted Writer on Wed Apr 23, 2008 9:52 pm

Yes right click is not a protection at all. If you want to hide your HTML content from being displayed the only ways is encrypting such content.

There are a number of encryption programs available for such task, although knowledgeable people aiming to grab your code may decrypt it.

Find further information on such software visiting this page http://javascript.about.com/od/referenc ... ptsoft.htm
User avatar
Trusted Writer
 
Posts: 22
Joined: Tue Apr 22, 2008 8:25 pm
Top

Re: Hiding HTML

Postby LinkBuildingBible on Thu Apr 24, 2008 9:45 pm

Thanks for the encrypting information. I am creating a custom google search in a niche where there's others, but I am stepping mine up and using the ajax api, and i don't want my competitors just copying and pasting my code and changing it to their site's API....

Thanks again!
Link Building Bible
User avatar
LinkBuildingBible
 
Posts: 215
Joined: Mon Apr 14, 2008 2:40 pm
Location: LinkBuildingBible.com
  • Website
  • YIM
Top

Re: Hiding HTML

Postby BuckBuck on Sun Apr 27, 2008 11:21 am

Trusted Writer wrote:Yes right click is not a protection at all. If you want to hide your HTML content from being displayed the only ways is encrypting such content.

There are a number of encryption programs available for such task, although knowledgeable people aiming to grab your code may decrypt it.

Find further information on such software visiting this page http://javascript.about.com/od/referenc ... ptsoft.htm



I agree with you. I do not know how disabled right mouse button will hide your HTML code. Only way is encryption. But if a person is determined to see it, the encryption will only slow him down.
Tasty recipes!
User avatar
BuckBuck
 
Posts: 532
Joined: Fri Apr 25, 2008 12:47 pm
Top

Re: Hiding HTML

Postby mudit_bhargava on Mon Apr 28, 2008 8:10 am

Batmeds wrote:Yes you can hide the source code several ways.

First you can use the disable right click code
Code: Select all
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>


This is easy to get around though all you have to do is go to a website like http://www.selfseo.com/html_source_view.php and type in the web address

The second method is to use a tool that encrypts the code. There are free tools like http://www.designerwiz.com/mf.htm?http& ... ptHTML.htm




ye this way u can hide the html but be sure u do the thing ritely
mudit_bhargava
 
Posts: 163
Joined: Sat Apr 12, 2008 6:36 am
Top

Re: Hiding HTML

Postby BuckBuck on Mon Apr 28, 2008 2:48 pm

mudit_bhargava can you please explain me how disabling the right mouse button will prevent someone from seeing the html code a particular page? If he cant use his right mouse button what happens? He can view the source any time he wants. ;)
Tasty recipes!
User avatar
BuckBuck
 
Posts: 532
Joined: Fri Apr 25, 2008 12:47 pm
Top

Re: Hiding HTML

Postby vinodg on Mon May 12, 2008 8:21 am

Me too have same question. I think I got better answer from this forum. I'll try above code in my web site and I'll check it out. I have online library web site and I want to hide my html code. I'll try the above technique and I'll post my experience.
vinodg
 
Posts: 100
Joined: Wed May 07, 2008 12:03 am
Top

Re: Hiding HTML

Postby BuckBuck on Mon May 12, 2008 12:02 pm

vinodg wrote:Me too have same question. I think I got better answer from this forum. I'll try above code in my web site and I'll check it out. I have online library web site and I want to hide my html code. I'll try the above technique and I'll post my experience.

It seems like it a big issue for the forum members. I found this site. I have not tried anything of it but it looks legit and i think you will have some success with it. :)
Tasty recipes!
User avatar
BuckBuck
 
Posts: 532
Joined: Fri Apr 25, 2008 12:47 pm
Top


Post a reply
12 posts • Page 1 of 1

Return to Coding

Hiding HTML

Who is online

Users browsing this forum: No registered users and 0 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC - 5 hours [ DST ]


All Rights Reserved, Copyright GuruCreation
Internet Marketing
Powered by phpBB