View Full Version : How can I protect my site
Anime_Lover
06-30-2003, 05:49 PM
Hi all I have finished all my Xhtml classes and I am drafting my web site as I type this. My question is I see some sites have their graphics locked so people cannot copy them. I tried to view their source to see the code to use but I can't access their codes. So how do I protect my site from vistors taking my personal stuff?
Thanks
Oh DE and TM I am getting there thanks to your help! Man those classes were tough. Before I forget I made it without the use of any editor. So I can code like the best of you......ya right!
tmmoose
06-30-2003, 07:01 PM
This Does More Than Just Stop Right Clicking...But Does Not Stop A "save"
<script language="JavaScript"><!--
document.onmousedown=click
var times=0
var times2=10
function click() {
if ((event.button==2) || (event.button==3)) {
if (times>=1) { earthquake() }
alert("Sorry No Right Click!");
times++ } }
function earthquake() {
alert("Warning Warning Warning!!");
window.moveTo(0, 0)
window.moveTo(1, 1)
window.moveTo(2, 2)
window.moveTo(3, 3)
window.moveTo(4, 4)
window.moveTo(5, 5)
window.moveTo(6, 6)
window.moveTo(7, 7)
window.moveTo(8, 8)
window.moveTo(9, 9)
window.moveTo(10, 10)
window.moveTo(9, 9)
window.moveTo(8, 8)
window.moveTo(7, 7)
window.moveTo(6, 6)
window.moveTo(5, 5)
window.moveTo(4, 4)
window.moveTo(3, 3)
window.moveTo(2, 2)
window.moveTo(1, 1)
alert("Your Not Going To Like This!!!")
tremmors()
}
function tremmors() {
window.moveTo(0, 0)
window.moveTo(1, 1)
window.moveTo(2, 2)
window.moveTo(3, 3)
window.moveTo(4, 4)
window.moveTo(5, 5)
window.moveTo(6, 6)
window.moveTo(7, 7)
window.moveTo(8, 8)
window.moveTo(9, 9)
window.moveTo(10, 10)
window.moveTo(9, 9)
window.moveTo(8, 8)
window.moveTo(7, 7)
window.moveTo(6, 6)
window.moveTo(5, 5)
window.moveTo(4, 4)
window.moveTo(3, 3)
window.moveTo(2, 2)
window.moveTo(1, 1)
tremmors()
}
// --></script>
Anime_Lover
06-30-2003, 07:09 PM
OMG ROFLMAO. TM this is too funny. I will use it and hopefully add a no save later on.
BTW any ideas for me to get started? You must answer your email that is a polite request :-).
Hey did you go over to the new forum poll and see what I left you?
Talk to you later!
tmmoose
06-30-2003, 07:09 PM
<script language="JavaScript1.2">
var message="Sorry, copying files is not allowed!";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false; } }
if (document.layers) {
if (e.which == 2 || e.which == 3) {
alert(message);
return false; } } }
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN); }
document.onmousedown=click;
// -->
Anime_Lover
06-30-2003, 07:21 PM
TM can I add this to the above script? Also where would this be put in the body of the document?
Anime_Lover
06-30-2003, 07:25 PM
Oh TM I added the 1st script to my test page and I clicked on it and OMG it went bonkers then it threw me out with an error message.
This is sure to piss someone off. I love it LOL
Anime_Lover
06-30-2003, 07:45 PM
Hi David,
I thought the same thing about being able to view the source but on a site I found when I tried to view the source it said something like this can not be viewed unless password is used.
I thought that was a kewl script to write.
Debra
Dynasty
06-30-2003, 08:16 PM
It's also not too difficult to make a winsock program that just gets the webpage like a browser, but doesn't actually parse it into a graphical form. Them bam left with the source...Of course no casual passer by is going to think of that XD
Anime_Lover
06-30-2003, 08:26 PM
Originally posted by Dynasty
It's also not too difficult to make a winsock program that just gets the webpage like a browser, but doesn't actually parse it into a graphical form. Them bam left with the source...Of course no casual passer by is going to think of that XD
I was wondering if you could reword this in laymens terms :-(.
Debra....go easy on me I am still learning after all!
It is not possible to prevent people from copying your script.
Besides what is mentioned above, you can just turn off scripting, or use Opera.
But you might make it difficult for others to reuse the script, by makeing it difficult for humans to read it.
I do also think that it is possible, deep in the code, to check which loacation it is used from.
Or maybe check the length of the script to see if anything is changed.
In that way only people capable of writing their own scripts will be abel to decode and use it.
GDS
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.