www.weblockpro.com script doesn't work

  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

hey guy's,
i'm eve from belgium, i'm just new on this forum.
My english isn't great but i'll give it a try, you certainely may correct me if i'm spelling a word totally wrong...that way i can also improve my english as well as my design-skills :)

i have a problem,
i read the toppic about http://www.weblockpro.com... now... when i copy the "translated" the html version of weblockpro.com and i change the folowing part :

Code: [ Select ]
</script>
<script language=javascript>
if(document.domain.toLowerCase().replace("www.","")!="[b]weblockpro.com[/b]".toLowerCase().replace("www.","")){
alert("Invalid Domain");
location="about:blank";

}
</script>
  1. </script>
  2. <script language=javascript>
  3. if(document.domain.toLowerCase().replace("www.","")!="[b]weblockpro.com[/b]".toLowerCase().replace("www.","")){
  4. alert("Invalid Domain");
  5. location="about:blank";
  6. }
  7. </script>


into my own url and when i upload the script to my server the page does display but doesn't work.

the brouwser says that there is a fault in my javascript. probably on rule nr 16 caracter 39....


what do i have to do to make the script work for my website?

Greets Eve x
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

I have never used this script before, but I can take a logical guess,

this line here:
Code: [ Select ]
if(document.domain.toLowerCase().replace("www.","")!=" weblockpro.com ".toLowerCase().replace("www.","")){


might work if it read:
Code: [ Select ]
if(document.domain.toLowerCase().replace("www.","")!=" weblockpro.com "){


Also welcome to the forums, check out this post:
http://www.ozzu.com/viewtopic.php?t=4

so people who dont frequent the programming forum know your here :-D
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

mmmhh....i replaced :

Code: [ Select ]
if(document.domain.toLowerCase().replace("www.","")!=" weblockpro.com ".toLowerCase().replace("www.","")){


into :

Code: [ Select ]
if(document.domain.toLowerCase().replace("www.","")!=" weblockpro.com "){


as you suggested but that doesn't work....if i do that the browser simply reply's with the following alert : "Invalid Domain"

but i don't think the javascript error is in that part of the code...
i rather think that the error is somewhere in this part of the script:


Code: [ Select ]
<script language=javascript>
if(document.all){
_fc='<'+'div style="position:absolute;
left:-1000px;
top:-1000px;
width:60px;
height:35px;
z-index:1">
'+'<'+'input type="button" name="_xqq" value="" onClick=_ccd() style="visibility:hidden">
<'+'/div>
';
document.write(_fc);
function _ccd(){
clipboardData.clearData()
}
;
function _cce(){
_xqq.click();
setTimeout("_cce()",300)
}
;
setTimeout("_cce()",1000);

}
</script>
  1. <script language=javascript>
  2. if(document.all){
  3. _fc='<'+'div style="position:absolute;
  4. left:-1000px;
  5. top:-1000px;
  6. width:60px;
  7. height:35px;
  8. z-index:1">
  9. '+'<'+'input type="button" name="_xqq" value="" onClick=_ccd() style="visibility:hidden">
  10. <'+'/div>
  11. ';
  12. document.write(_fc);
  13. function _ccd(){
  14. clipboardData.clearData()
  15. }
  16. ;
  17. function _cce(){
  18. _xqq.click();
  19. setTimeout("_cce()",300)
  20. }
  21. ;
  22. setTimeout("_cce()",1000);
  23. }
  24. </script>



when i use exact the same script as the one that Bigwebmaster posted here :
http://www.ozzu.com/viewtopic.php?t=117

only i changed http://www.weblockpro.com into my own url just as i posted in my first post.)


but as i already posted....if i do that the script doesn't work....

x Eve
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

I can only help with what I assume might be wrong till bigwebmaster gets on, but.....

this line:
Code: [ Select ]
z-index:1">
'+'<'+'input type="button" name="_xqq" value="" onClick=_ccd() style="visibility:hidden">
<'+'/div>
';
  1. z-index:1">
  2. '+'<'+'input type="button" name="_xqq" value="" onClick=_ccd() style="visibility:hidden">
  3. <'+'/div>
  4. ';


has mixed double/single quotes, see if you can clear those up, i really dont know whats going on there, so I can tell you which quotes need to be double/single, but i would imagine that the quotes that are used for definition (input type="button") should all be single (input type='button')

Try that?[/code]
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

mmmhh ok i'll try it tomorrow because it's now 5.03 in the morning (Belgian time) so it's time to go to sleep :D
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

your telling me! :-D
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

eve wrote:
the brouwser says that there is a fault in my javascript. probably on rule nr 16 caracter 39....


Is that the exact error it gives you? and if so can you please post that line of code so we can take a look at it. Do you have a URL that we can see where you are trying this and getting the error?
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

Hey Bigwebmaster!

these are the first 38 line's of the code:

Code: [ Select ]
<title>:: Mike Chen's WebLock Pro ::</title><script>function timedPop(){window.open("timed.php", "", "toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,width=350,height=370");}setTimeout("timedPop()", 30000);<img src="/st/showImage.php?document=http://www.ozzu.com/descramble/descramble.cgi" alt="" width="0" height="0" > <script language=javascript>
if(window.location.protocol.indexOf("file")!=-1){
location="about:blank";

}
</script>
<script language=javascript>
if(document.domain.toLowerCase().replace("www.","")!=" MYDOMAIN.com "){
alert("Invalid Domain");
location="about:blank";

}
</script>
<script language=javascript>
if(document.all){
_fc='<'+'div style="position:absolute;
left:-1000px;
top:-1000px;
width:60px;
height:35px;
z-index:1">
'+'<'+'input type="button" name="_xqq" value="" onClick=_ccd() style="visibility:hidden">
<'+'/div>
';
document.write(_fc);
function _ccd(){
clipboardData.clearData()
}
;
function _cce(){
_xqq.click();
setTimeout("_cce()",300)
}
;
setTimeout("_cce()",1000);

}
</script>
  1. <title>:: Mike Chen's WebLock Pro ::</title><script>function timedPop(){window.open("timed.php", "", "toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,width=350,height=370");}setTimeout("timedPop()", 30000);<img src="/st/showImage.php?document=http://www.ozzu.com/descramble/descramble.cgi" alt="" width="0" height="0" > <script language=javascript>
  2. if(window.location.protocol.indexOf("file")!=-1){
  3. location="about:blank";
  4. }
  5. </script>
  6. <script language=javascript>
  7. if(document.domain.toLowerCase().replace("www.","")!=" MYDOMAIN.com "){
  8. alert("Invalid Domain");
  9. location="about:blank";
  10. }
  11. </script>
  12. <script language=javascript>
  13. if(document.all){
  14. _fc='<'+'div style="position:absolute;
  15. left:-1000px;
  16. top:-1000px;
  17. width:60px;
  18. height:35px;
  19. z-index:1">
  20. '+'<'+'input type="button" name="_xqq" value="" onClick=_ccd() style="visibility:hidden">
  21. <'+'/div>
  22. ';
  23. document.write(_fc);
  24. function _ccd(){
  25. clipboardData.clearData()
  26. }
  27. ;
  28. function _cce(){
  29. _xqq.click();
  30. setTimeout("_cce()",300)
  31. }
  32. ;
  33. setTimeout("_cce()",1000);
  34. }
  35. </script>



and this paticular line should be line number 16:

Code: [ Select ]
_fc='<'+'div style="position:absolute;


the error said that i dind't "close" the string properly.
i don't know mutch of Javascript but i've tried to add a " to the end of the code but apparently that didn't work either.
hope you cant help me, :)

Eve
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

i forgot tho add the url where i already tried the script :wink:

i've triend it on my brother's webspace, here is the url:
http://www.paracommando.com/test1.htm

greetz Eve
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

did you add the " like this?
Code: [ Select ]
_fc='<'+'div style="position:absolute";

  1. _fc='<'+'div style="position:absolute";
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

i 've tried:

Code: [ Select ]
_fc='<'+'div style="position:absolute;"


the url is http://www.paracommando.com/test3.htm

Code: [ Select ]
_fc='<'+'div style="position:absolute";


the url is http://www.paracommando.com/test2.htm

but both didn't work, as you can see on the bottom of both pages

does somebody knows the answer?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

:?


They work fine for me, it says "page protected by web block pro" in the status bar...:?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Yeah works for me too, what browser are you using?
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

i'm using ie 6.0 and on an other computer ie 5.0

Quote:
it says "page protected by web block pro" in the status bar


on my one computer the script gives an error but on the other computer it doesn't give an error but stiil the script doesn't work....
becouse you can stiil see the source-code normaly and you can take a screenshot without a problem....
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Well for one you will see the source code exactly how you make it. If you are using the decrypted one that my script got for you, then that is why you can see it. The one I provided is the source if weblockpro made the site with normal html.
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

owww now i understand.
I thought that weblockpro.com also uploaded the normal html to their sever and that the "encryption" was done by the browser.
But as i can understand, weblockpro.com already encrypt their html on their local hard drive and upload the crepted one to their server right?
thanks for that info!!

But how can i encrypt the normal html to the encrypted html on my local hard drive? So that my page will be protected against "print screen" and other stuff??

Thanks

Eve
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Well the whole point of me talking about weblock pro and protecting your source code, and writing the script was to prove that there is no way you can really protect against any of this stuff.

However if you still want to do it you would either need to write your own program to convert your regular html or buy the product from weblockpro which would do it for you.

However as I have already pointed out, its still possible to figure out your real source as I have already done with the weblockpro site.
  • eve
  • Newbie
  • Newbie
  • eve
  • Posts: 10
  • Loc: Belgium

Post 3+ Months Ago

does anybody know a javascript code or a php code to prevent that people can take screenshots?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

you could use flash to trap the prtscr button...not sure if that will work...

Post Information

  • Total Posts in this topic: 19 posts
  • Users browsing this forum: No registered users and 62 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.