Hello, are there any scripts on the web that could disable visitors from viewing my web source code? (can java script do this? if not any recommendations?)
Working web site is not the one that looks the same in a few graphical browsers, but the one that adequately delivers its content to any device accessing it.
I've actually seen some sites that don't allow the view code in the popup menus, I think they do it by using layers or iframes or something like that.
Alternatevely, you could encode your javascript with a little Microsoft tool called Script Encoder, the Javascript will look all (%^&^%&*%^*^%&) like that, but be carefull, only IE can decode it on the fly, Netscape can't.
if you look at the page (it is protected with the weblock software), you'll notice som php use, encryption, no right-click, and a lot of other script...
But even this way the code is not 100% protected...
thanks many for the constructive suggestions...maybe can try the weblock prog...and Scientist, could you elaborate more on your method...i personnaly seen some sites that could lock you from copying anything from their web and also prohibit you from viewing their source code...im impressed.
(by the way my source code has nothing to be ashamed of, im trying to do it in a more professional method)....
Oh, and if you buy it, could you please share the secret?
Cheers.
You are so gullible.
WebLockPro is a scam that makes money off people's ignorance.
I guess I will take my time and educate consumers:
Here are the easy steps to get the http://www.weblockpro.com/home.php source for whatever it is worth:[list=1][*]Get Mozilla with Web Developer extension for easy bypass of no-right-click script and other silly stuff[*]Disable javascript after the page loads. View source and save it to an HTML file. Open the file in a text editor that allows word wrap.[*]Towards the end of the document you find some scrambled stuff - for further convinience delete everything up to the first "meta" tag.[*]Create a simple HTML document which you will use to get the code:
[*]Load your HTML page and see the descrambled code in the textarea. What you learn is that the regular document write function is disabled and it's code is mapped to _dw.[*]Unscramble the second escaped sequence from the weblockpro source and find the following code comments are mine
Code:
_d=""; //initialize string variable
for(_i=0;_i<_c.length;_i++) // Go through all characters in string _c
if(_i%3==0)_d+="%"; //for every third character insert the % sign
else _d+=_c.charAt(_i);
eval(unescape(_d)); //Unescape the resulting code and evaluate it
_d=""; //Set the _d variable to empty string so no one can get it
[*]Now to get the code, create the following function in your HTML document
modify your pageLoad function to put out the result of get_c()
Code:
function pageLoad()
{ document.getElementById('output').value =get_c();
}
copy the _c string from the weblockpro source code to your HTML file and reload it[*]What you find is the following function again comments are mine
Code:
function _x(s)
{ s=unescape(s); // Unescape the function string argument
t=Array(); // Define array
t[0]=""; // Set first element to empty string
j=0; // Initialie index variable
for(i = 0; i < s.length; i++) //iterate through the input string
{ t[j]+=String.fromCharCode(s.charCodeAt(i) + (i%2==0 ? 1 :-1)); //Do the decoding
if((i+1)%300==0) // Limit the length of the array elements to 300
{ j++; // (supposedly for better performance
t[j]="";
}
}
document.write=_dw;
u="";
for(i=0; i<t.length; i++) // Combine the decoded strings into one
{ u+=t[i];
}
document.write(u); // Write it to the document
u="";
t=Array();
_dw=document.write;
document.write=null;
}
add it to your HTML page, modify the pageLoad function to put out the unscrambled code and copy the scrambled page content string, which is found at the end of the weblockpro as an arguement to function _x(""), to a variable on your page which become the argument to your function getCode(s);[*]Reload your HTML document and see the code.[/list=1]
Working web site is not the one that looks the same in a few graphical browsers, but the one that adequately delivers its content to any device accessing it.
Originally posted by advinc thanks many for the constructive suggestions...maybe can try the weblock prog...and Scientist, could you elaborate more on your method...i personnaly seen some sites that could lock you from copying anything from their web and also prohibit you from viewing their source code...im impressed.
(by the way my source code has nothing to be ashamed of, im trying to do it in a more professional method)....
Yeah, when you are a kid watching a magician you get impressed as well. When a magician watches a magician, he knows what's going on or can easily deduce it.
Any method which attempts to block the viewing of HTML source IS amature. If your code is nothing to be ashamed of, why do you want to hide it???
Working web site is not the one that looks the same in a few graphical browsers, but the one that adequately delivers its content to any device accessing it.
Bottom line, and everyone listen up now... you CANNOT protect anything that runs on the client machine. That includes HTML, JavaScript, and images. This is a fact that is inherent to how the World Wide Web works. If anyone tells you otherwise, they are either ignorant or a con.
Did any of you read any of the WebLockPro site? It is complete BS...
Under "Why you should try WebLockPro TODAY!"
(Just picking out a few of my favorites - there are lots more)
Lie 1: Automatically increases your traffic
Last time I checked, making an inaccessible site does not drive the visitors up...
Lie 2: 100% compatible with all web pages and browsers
It relies on JavaScript... enough said.
Lie 3: disabling right clicks, text selection, printing, caching, local viewing, and screenshots are just a few of WebLock Pro's features
Anybody want a screenshot of the site? Or, a screenshot with my right-click menu open?
I'm a asp developer and I'm would like to encrypt some data that I pass trought the url.
Does anybody know of any asp engine that will allow me to encrypt data.
Thank you
Did any of you read any of the WebLockPro site? It is complete BS...
[ snippage ]
Lie 3: disabling right clicks, text selection, printing, caching, local viewing, and screenshots are just a few of WebLock Pro's features
Anybody want a screenshot of the site? Or, a screenshot with my right-click menu open?
BWAHAHAHAHAHAHAHAHAHA...
Screenshots? SCREENSHOTS?! I mean, sure, the others are at least restricted by IE because IE is stupid, but screenshots?
BWAHAHAHAHAHAHAHA...
IE 6 renders Acid 2 like Opera 3.6. IE 7 renders Acid 2 like Opera 4. Firefox 1.5 renders Acid 2 like Opera 8. And Opera 9 renders Acid 2 correctly.
Need I say more?
Bookmarks