FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


copy-controlling your website





ChrisCh
hey. my website has a special members only area that is locked using the .htaccess & .htpasswd utilities. i want to go one step further in protecting my data - copy protection. ive heard that you can do things like stop users from copying your text, printing your site etc... i am wondering what scripts you could use to stop things like:

viewing/copying source code
downloading webpage
printing the page
copying and pasting text

i have already disabled right-clicking on every page on my site to reduce image downloads, and i have also disabled the "hover toolbar" that is incorporated with internet explorer 6. i have tried opening pages in those special windows without the standard buttons/menus etc but people always find ways around that. what i am looking for is a proper method to reduce copying of my site as much as possible. (when browsing the net the other day i found a page exactly the same as mine but only with a different colour scheme... even my welcome greeting was the same Sad)

if you have any ideas they would be much appreciated Smile
xorcist
To Disable Right Click put
Code:
<!-- Disable Right Click -->
<script language=JavaScript>
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>

To Disable people from dragging and dropping things put
Code:
<!-- Disable Drag -->
<script type="text/javascript">
<!--
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
-->
</script>

I will try to find more after. I think I can find he source code and more things to protect people from trying to steal your content.
wumingsden
xorcist wrote:

I will try to find more after. I think I can find he source code and more things to protect people from trying to steal your content.


I don't there is a way to do this. What you could do is when you edit your site again make a huge gap between that first word (i.e <html> ) and the top of the page, (use the return key). This moves all of the source code down to the bottom and some dumb people might think that you've fount a way to protect it. Sly and cunning but can sometimes work Very Happy
Reign
Just use flash, lol
ChrisCh
xorcist: Thanks so much for your codes, ive put them on my site and they're working perfectly! if you happen to come across any others it would be greatly appreciated.

wumingsden: i'll do this on my new page design - thanks for your idea:)

Reign: while a good idea, ive just finished redesigning my site (in html mostly), but i want to protect it b4 it goes online. thanks for your input!
Marston
ChrisCh wrote:
xorcist: Thanks so much for your codes, ive put them on my site and they're working perfectly! if you happen to come across any others it would be greatly appreciated.

wumingsden: i'll do this on my new page design - thanks for your idea:)

Reign: while a good idea, ive just finished redesigning my site (in html mostly), but i want to protect it b4 it goes online. thanks for your input!
Note that anyone, at any time, can turn off JavasScript in their browsers, and take all the precious text from your website... Smile
ChrisCh
ohhhhhhh! i didnt realise that! lol well the person who yoinked my site last time isnt smart enough to disable javascript, so i just hope that no visitors to my site discover how to disable it!
n0obie4life
ChrisCh wrote:
ohhhhhhh! i didnt realise that! lol well the person who yoinked my site last time isnt smart enough to disable javascript, so i just hope that no visitors to my site discover how to disable it!


With firefox, it's only a few clicks away..
xorcist
I really never use any of those but they should be good. To disable javascript is very easy but people who steal things like that really dont know how to disable javascript because they would of just make something of there own.
clip
have anyone visited friendster lately?

try visiting friendster using IE and you'll never be able to view their source codes. No Matter What! But on FireFox, well, it's just a few clicks away! lol! It's easier to fool IE than FireFox! Very Happy r0X0RS!
Panthrowzay
I use the first code for a Moderator test for my site pass it and your in, as a admin http://xit.frih.net there is a way you just open the site, yes i said open it as if your going to edit it....
but i need a more soild way to
silentpark
flash isn't more secure then jsut html... (ok it'll stop some kiddies but.. thats all)

well to secure text maybe use images (with text in it),
but there is always the way just to copy thinkg by hand... powerful tool would be editor or word i think Wink

well why is it that important to avoid copieng of what you have done?
polarBear
You can easily download the whole site and manually take away all the js if necessary, the images, the text, flash movies, and whatever they want.

If you want things to be safe, don't show them to the public.
Stubru Freak
Code:
javascript:document.oncontextmenu=void(0);document.onmousedown=void(0);window.onmousedown=void(0);document.onclick=void(0);document.onselectstart=void(0);document.onmouseup=void(0);


Bookmark this code and you can disable almost all protections just by clicking it.
wumingsden
clip wrote:
have anyone visited friendster lately?

try visiting friendster using IE and you'll never be able to view their source codes. No Matter What! But on FireFox, well, it's just a few clicks away! lol! It's easier to fool IE than FireFox! Very Happy r0X0RS!


I are talking about this source code which I took whilst using IE (I haven't got FireFox)

Quote:
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

      <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Friendster</title>
<link rel="stylesheet" type="text/css" media="screen, print" href="http://images.friendster.com/200601D/css/index.css">
<link rel="SHORTCUT ICON" href="http://images.friendster.com/images/friendster.ico">
<script type="text/javascript">
  window.name="friendster";
 
    function loginf() {
      if (document.login_form.email.value != '')
        document.login_form.password.focus();
      else
        document.login_form.email.focus();
    }
  </script><script type="text/javascript" src="http://images.friendster.com/200601D/js/fs_onload.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/ads.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/atomfeed.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/correctpng.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/date.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/friendster_v1.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/localtimezone.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/rss.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/school.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/teaser.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/userplane/functions.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/XMLHttpRequest.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/comments_ratings.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/interstitial.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/newfriendstoggle.js"></script><style type="text/css">
     #container {width:expression(document.body.clientWidth < 970 ? "970px" : "auto");}
    </style>
<link rel="stylesheet" type="text/css" media="screen, print" href="/css/friendster_main.css">
<link rel="stylesheet" type="text/css" media="screen, print" href="/css/fixie.css">
<style type="text/css">
      #branding {border-bottom:none !important;}
      #content {
       
            /* hide from mac ie \*/
            height:1%;
            /* end hide */
           
        padding:10px;
        margin:0 auto;
      }
      #nav, .searchbox {display:none;}
      #footer {border-top:none;}
    </style>
</head>
<body onload="
    doInterstitial('/interstitial.php', 15000);
 
    loginf();
  displayAds('paidlink','sponsorsAd','','xsl/index.xsl',1);displayAtomFeed();displayTeaser('xsl/index.xsl');">
<div id="dwindow" style="border: #333 solid 3px;z-index:9999;position:absolute;height:550px;background-color:#fff;cursor:hand;left:200px;top:0px;display:none" onMousedown="initializedrag(event)" onMouseup="stopdrag()" onSelectStart="return false">
<div align="right" style="width: auto; text-align: right; background-color:#d5d5d5;"><img src="http://images.friendster.com/images/splash/close-btn.gif" onClick="closeit()"></div>
<div id="dwindowcontent" style="height:100%;"><iframe id="cframe" src="" width="100%" height="100%" style="border: 0;" scrolling="no"></iframe></div>
</div>
<div id="container">


There is then a lot of space and it carries on:

Code:

<script language="JavaScript" type="text/javascript">
  var numArticles = 3
</script><link rel="stylesheet" type="text/css" media="screen, print" href="/css/index.css">
<div id="iecenter"><div id="wrapper">
<script type="text/javascript">MM_preloadImages('/images/index/join-btn-hl.gif','/images/index/tour-btn-hl.gif','/images/index/btn-hl.gif','/images/index/bbtn-rt-hl.gif','/images/index/bbtn-lt-hl.gif');</script><table width="860" border="0" cellpadding="0" cellspacing="0"><tr><td align="left" valign="bottom" style="padding: 10px 0 0 0"><a href="/"><img src="http://images.friendster.com/images/logo-whitebg.gif" width="217" height="30" alt="Friendster" title="Friendster. do it with your friends!" border="0"></a></td></tr></table>
<br><table width="860" border="0" cellspacing="0" cellpadding="0">
<tr><td><img src="/images/index/1003_header.gif" width="860" height="27" alt="" border="0"></td></tr>
<tr><td><img src="http://images.friendster.com/images/fnl/spacer.gif" width="1" height="5"></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="860"><tr>
<td width="560" valign="middle"><table border="0" cellspacing="0" cellpadding="0" width="550"><tr>
<td width="257" align="center" valign="top" style="padding-top: 10px;"><a href="/join.php"><img src="/images/index/tag-line.gif" width="244" height="163" alt="" border="0"></a></td>
<td width="293" align="left" valign="middle"><div><form action="index.php" name="login_form" method="post">
<input type="hidden" name="_submitted" value="1"><input type="hidden" name="next" value="/home.php?statpos=index"><input type="hidden" name="tzoffset" value=""><script language="JavaScript">
                  var now = new Date();
                  document.login_form.tzoffset.value = now.getTimezoneOffset();
                </script><table width="283" border="0" cellspacing="0" cellpadding="0">
<tr><td height="25" colspan="3" class="login-hd"></td></tr>
<tr valign="middle">
<td height="33" class="login-box-left"><div style="font-weight: bold;" class="grey-text tdright">
<br>
                            email<font color="#eaeaea">:</font>
</div></td>
<td height="33" colspan="2" class="login-box-right"><div class="grey-text tdleft"><input type="text" name="email" maxlength="100" size="22" alt="Email Address" tabindex="1" value=""></div></td>
</tr>
<tr valign="middle">
<td height="25" valign="middle" class="login-box-left"><div style="font-weight: bold;" class="grey-text tdright">password<font color="#eaeaea">:</font>
</div></td>
<td width="100" height="25" valign="middle" bgcolor="#eaeaea" style="width:100px; !important"><span class="grey-text"><input type="password" name="password" maxlength="10" size="22" alt="Password" tabindex="2"></span></td>
<td height="25" valign="middle" class="login-box-right"><div class="grey-text tdleft" style="margin-left: 5px;"><input type="image" src="/images/index/login_btn2.gif" tabindex="3" border="0"></div></td>
</tr>
<tr valign="middle"><td height="30" colspan="3" valign="middle" class="login-box-bottom">
<div align="left" class="grey-text">
<img src="http://images.friendster.com/images/fnl/spacer.gif" width="69" height="1"><input type="checkbox" name="remembermyemail">
                            remember my email
                        </div>
<div align="left" style="padding-top: 5px; padding-bottom: 7px;" class="grey-text">
<img src="http://images.friendster.com/images/fnl/spacer.gif" width="73" height="1"><a href="/forgotpassword.php">forgot your password?</a>
</div>


etc, etc, and I'm not real wiz at PC's and I was able to get it.
clip
dude, you did get the source of the login page. try getting the source of member profiles.

View>Source in IE, wont show anything.

Click the edit with>notepad, it says access is denied. Razz

[edit]
i tried the login page with IE. and wth, How did you view it using IE?

or maybe...!!! naughty!!! you're using ffx!
wumingsden
clip wrote:
dude, you did get the source of the login page. try getting the source of member profiles.

View>Source in IE, wont show anything.

Click the edit with>notepad, it says access is denied. Razz

[edit]
i tried the login page with IE. and wth, How did you view it using IE?

or maybe...!!! naughty!!! you're using ffx!


What is ffx ? I searched for it in Google and Final Fantasy came up. I only used IE to get it

UPDATE.....

I've just try doing it on members profile and I got this (plus a lot, lot more):
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Friendster Profile</title>
<link rel="stylesheet" type="text/css" media="screen, print" href="http://images.friendster.com/200601D/css/frontporch.css">
<link rel="SHORTCUT ICON" href="http://images.friendster.com/images/friendster.ico">
<script type="text/javascript">
window.name="friendster";
</script><script type="text/javascript" src="http://images.friendster.com/200601D/js/fs_onload.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/ads.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/atomfeed.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/correctpng.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/date.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/friendster_v1.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/localtimezone.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/photos.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/rss.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/school.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/teaser.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/userplane/functions.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/XMLHttpRequest.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/comments_ratings.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/interstitial.js"></script><script type="text/javascript" src="http://images.friendster.com/200601D/js/newfriendstoggle.js"></script><style type="text/css">
     #container {width:expression(document.body.clientWidth < 780 ? "780px" : "auto");}
    </style>
</head>
<body onload="displayAds('paidlink','sponsorsAd','','xsl/useropen.xsl',0);"><div id="container">
<div class="header"><a href="/"><img src="http://images.friendster.com/images/header_graphic.jpg"></a></div>
<br clear="all"><div class="frame">
<div class="left_column">
<div class="left_column_header"><h1>
  Gubi's Profile
</h1></div>
<div class="left_column_content">
<br clear="all"><div class="left_column_photos">
<div class="left_column_profile_thumbnails">
<a onclick="pic = swapPic(this);return
Stubru Freak
It's not that hard, listen, you go to the page, right click and choose view source. Got it?
wumingsden
Stubru Freak wrote:
It's not that hard, listen, you go to the page, right click and choose view source. Got it?


I was just trying to prove clip wrong by when he said:

Quote:

clip wrote:
have anyone visited friendster lately?

try visiting friendster using IE and you'll never be able to view their source codes. No Matter What!



If a Moderator comes round I think you should decrease my points. I added all that source code to prove a point so its not at all fair to gain points, even though it was only 3,
thanks
Stubru Freak
wumingsden wrote:
Stubru Freak wrote:
It's not that hard, listen, you go to the page, right click and choose view source. Got it?


I was just trying to prove clip wrong by when he said:

Quote:

clip wrote:
have anyone visited friendster lately?

try visiting friendster using IE and you'll never be able to view their source codes. No Matter What!



If a Moderator comes round I think you should decrease my points. I added all that source code to prove a point so its not at all fair to gain points, even though it was only 3,
thanks


Yes I know, I was trying to explain clip how to do it himself.
wumingsden
Stubru Freak wrote:
wumingsden wrote:
Stubru Freak wrote:
It's not that hard, listen, you go to the page, right click and choose view source. Got it?


I was just trying to prove clip wrong by when he said:

Quote:

clip wrote:
have anyone visited friendster lately?

try visiting friendster using IE and you'll never be able to view their source codes. No Matter What!



If a Moderator comes round I think you should decrease my points. I added all that source code to prove a point so its not at all fair to gain points, even though it was only 3,
thanks


Yes I know, I was trying to explain clip how to do it himself.


Sure, although we all have to honest, there is no full-proof way to protect your content on the web. If you don't want it to be taken then don't have it online, As Simple As That.
devroom
every1 who wants a picture from your site and knows a little bit about html and / or has some other browser than IE can copy all your stuff. The only thing you can do is to make it a little bit harder for pc greenies to copy stuff
n0obie4life
@wumingsden

I think you have copied and pasted. And our rules state that copied and pasted stuff have to be in quote tags.

Anyway, this problem is solved and has went offtopic.

And btw, friendster had just did this for the source code

Code:
this is my top of the source code
<insert alot of blank spaces here>
this is the bottom of my source code


-close-
Related topics
help me!!! look for some paper on gas pipeline design
[FuN]Gokus Web-Templates And Sigs (Now Closed)
moderator forum
What are Keywords & why we shld add to our website?
Want to win a copy the DELUXE editon of Harry Potter and HBP
Indigoperl includes a copy of Apache 2.0.44, PHP 4.2.3, perl
Videos in your website without using windous media player
How do I copy directories in DirectAdmin
Give the text on your website a shadow with minimum hassle!
Website spelling
Submit your Best website name......
Building a Website Offline
Started my frihost website
Freeware to download entire website
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.