Closed Thread Icon

Preserved Topic: Disabling the Shift button. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17846" title="Pages that link to Preserved Topic: Disabling the Shift button. (Page 1 of 1)" rel="nofollow" >Preserved Topic: Disabling the Shift button. <span class="small">(Page 1 of 1)</span>\

 
riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-29-2000 01:40

Whats the code for disabling the Shift button. This would help in a page where right clicking has been disabled but you still dont want users to click on a link while holding the shift button thus following your links. I've seen this done before so I know its possible.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-29-2000 03:18

don't really know, but I'm wondering why you would want to in the first place?

riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-29-2000 04:41

so as to hide a url. I've got a dot com name for my site which uses frame forwarding to the IP where I host my site and I dont want users viewing and bookmarking that IP so thats why I want to disable the shift key. The site I saw using it had it in a way such as on hitting the click key a message popped up saying that its disabled more or less the same as when on right click of a mouse a message might pop-up.
go to www.riddiminerz.com and theres a pop-up window, and thats where I wonna disable the shift key.

[This message has been edited by riddim (edited 29-08-2000).]

Piper
Paranoid (IV) Inmate

From: California
Insane since: Jun 2000

posted posted 08-29-2000 05:21

Hmmm, I was able to get his/her source real easy:

code:
<html>
<head>
<title>http://www.riddiminerz.com/</title>
</head>
<frameset rows="100%,*" name="frameset" border=0 frameborder=0 framespacing=0>
<frame src="http://146.163.5.1/~whailem/lele" name="content" noresize frameborder=0>
<frame src="" noresize frameborder=0>
<noframes>
<body>
Go to [url=http://146.163.5.1/~whailem/lele]http://146.163.5.1/~whailem/lele[/url]
</body>
</noframes>
</frameset>
</html>



That was in the frames page and it shows the IP.

Here is some of the code on the pop-up page:

code:
<html>

<head>
<title>Lele Dancehall - riddiMinerz.com</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta content="_top" http-equiv="Window-target">
<meta name="ROBOTS" content="NOINDEX , NOFOLLOW">
<script language="JavaScript">
var boodschap = 'Lele Dancehall';
function dgstatus()
{
window.status = boodschap;
timerID= setTimeout("dgstatus()", 25);
}
</script>
<script language="JavaScript"><!--
dgstatus();
//--></script>
<script
language="JavaScript">
<!-- START
if (top.frames.length!=0)
top.location=self.document.location;




There really isn't a secure way to hide the IP. If you're forwarding to the IP of you're home machine you should invest in a firewall. I am not sure exactly what you?re trying to do though.

CP


[This message has been edited by Piper (edited 29-08-2000).]

[This message has been edited by Piper (edited 29-08-2000).]

timothymcnulty
Neurotic (0) Inmate
Newly admitted
posted posted 08-29-2000 06:03

I understand what you mean about holding the shift button down and then clicking on the link that says "enter". It opens a new window containing all of the toolbars again, obviously giving the user the option to bookmark hat portion of the site.

But I do not understand why you even need that "enter" button at all, all of your content seems to be located on that same page, so the enter button actually does nothing. So I do not even see a need to disable the shift button...

also, you may want to ad the navagation toolbars back in, once anyone goes to the message board, they are stuck there. There is no way to navagate back to the site.

I am not familiar with ezboard, but maybe you could ad a link that executes the "back" function in javascript, so you would not have to ad the toolbar in.

riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-29-2000 06:09

My point wasnt that its not possible to do a view source but all I wonna do is not make the link in the pop-up page be able to be opened in a new window. Any one can do a view source and follow the link to a page if its listed in the frames so I dont understand your point on copying and pasting the source.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-29-2000 06:54

but again, I just want to ask why? I don't mean that in a patronizing way...I just still don't understand the purpose of doing it?

timothymcnulty
Neurotic (0) Inmate
Newly admitted
posted posted 08-29-2000 07:14

yeah i wonder the same thing...guess i sprinkled to much invincible powder on that last post....[and i brush some off, and lets see if that does the trick]

riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-29-2000 07:53

... and still none of y'all has answered me but keep asking why.

timothymcnulty
Neurotic (0) Inmate
Newly admitted
posted posted 08-29-2000 09:19

try using the OnKeyPress() event, i have used it to verify keys press while typing in a text box, not sure if it will work for what you want to accomplish though. it may only be a text related event for use in forms.....

i do know that it only works in javascript 1.2, so older browsers will not understand.


(i think it is funny when people will ask questions, and ignore constructive critisism...been happening a lot lately.....)

little osh
Bipolar (III) Inmate

From: Wales, UK
Insane since: Jun 2000

posted posted 08-29-2000 10:18

I think (having read through these postings about 5 times), that I just about understand what you're trying to do. (Some of your scentences don't quite make sense if you read though them again!)

What I'm not sure about is where exactly you expect people to find your IP address. Is it only from the source code, or is it thought an RMB menu or some other manner.

If it's the former, then can't you simply put a link to your code, rather than simply type your code in the top level .htm file, like this:

<SCRIPT LANGUAGE="JavaScript" SRC="filename.js"></SCRIPT>

That way, nobody will ever be able to see your source code (short of hacking into your server!)

Is that what you want, or have I completely misunderstood?

osh

riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-29-2000 13:45

I got my question answered and even better, the script I found disables the pressing of any keyboard key plus right clicking too. I knew the answer lay out there in warez sites and I went out searching and edirectdownload.com just had the thing I was looking for, www.edirectdownload.com/main.shtml in the java.js script to be precise. Maybe now some one can go ask him "why" he put the script there. Of course any one who wants to see the code or view his links bad enuff can see em but it serves to deter the "Average" user. Thanks y'all for your help. For anyone curious the code in the java.js file is below

self.focus();
defaultStatus="eDirectDownload.com - Download The Latest Mp3 & Warez!";
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 &#0124; &#0124; e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 &#0124; &#0124; event.button == 3)) {
alert("Thanks for visiting www.edirectdownload.com");
return false;
}
return true;
}
function keypressed() {
alert("Thanks for visiting www.edirectdownload.com");
}
document.onmousedown=right;
document.onkeydown=keypressed;
function getcookie(name){
var cname = name + "=";
var dc = document.cookie;
if(dc.length > 0){
begin = dc.indexOf(cname);
if(begin != -1){
begin += cname.length;
end = dc.indexOf(";",begin);
if(end == -1) end = dc.length;
return unescape(dc.substring(begin,end));
}
}
return null;
}

la'dsasha
Neurotic (0) Inmate
Newly admitted
posted posted 08-29-2000 14:53

you could also use the script found on this site: http://www.albecomics.com/

if anyone tries to go to any of your pages outside of frames, it throws it back into frames. *however* it doesnt prevent other people from throwing your pages in frames.

osh, you can download a .js file if you want. i do it all the time so that i can learn what other people do.

as far as i know, there is no garanteed way to protect a site from viewing the source. you could use a combination of "no right click" and throwing it in frames with that "no out of frames" script and do a million other little things. but in the end, you can download a whole website in frontpage. so you get the code anyways.

how much is it realy worth anyways? it only makes it a pain in the ass to those of us who view others source to learn.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-29-2000 18:26

Hmm seems you are also going to have to put a window.status event so that the URL doesn;t get shown.

Little Osh, that method doesn't work for hiding scripts. if you view the source and get the name and path to the .js file you can pop it in your browser and download the file. I do it all the time.


Walking the Earth like Kane

timothymcnulty
Neurotic (0) Inmate
Newly admitted
posted posted 08-29-2000 20:41

uhh, you do realize that script disables *all* keyboard events right? quite annoying if you ask me, for someone who tabs to links a lot.....

little osh
Bipolar (III) Inmate

From: Wales, UK
Insane since: Jun 2000

posted posted 08-30-2000 03:24

Ha! Yeah, Bitdamaged. You got there before me! I realised this last thing last night, but was too lazy to come and post my mistake here!

Hope I didn't cause too many catastrophes there... I think I'll go and hide under the table in shame now...

osh

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-30-2000 08:16

huh. but, why? <img border=0 align=absmiddle src="http://www.ozones.com/forum/wink.gif">

timothymcnulty
Neurotic (0) Inmate
Newly admitted
posted posted 08-30-2000 08:36

hehehe..... <img border=0 align=absmiddle src="http://www.ozones.com/forum/smile.gif">

little osh
Bipolar (III) Inmate

From: Wales, UK
Insane since: Jun 2000

posted posted 08-30-2000 09:10

because...

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 08-30-2000 20:13

Riddim:

... and still none of y'all has answered me but keep asking why.

-------------------

First, you have to understand that in order to provide you with the best answer, we must sometimes understand your motives so that we can offer a complete solution. Otherwise, it will go back and forth with...
"That doesn't work, because I also want to..."
"Oh, then how about this?"
"Well, what I was hoping to do was..."

Help us to understand, so we can help you.

Secondly, this isn't a tech-support kiosk. You don't type in a question and out comes an answer on a neat little piece of card stock. In discussing your problem, we hope to learn something, too. You might have an idea that we would help us out. So, share what it is you want to do.

Besides, as is often demonstrated, if we know what it is that you want to accomplish in the end, we can tell you that the way you're trying to do it isn't going to work for various reasons and offer alternatives. You will also receive helpful opinions regarding the effect you're attempting to integrate, which, coming from professionals in the business, probably shouldn't be ignored.

It's a discussion board here at the Asylum, not a user-moderated Q&A.

This message brought to you by the Association for Symbiotic Forum Relations.


timothymcnulty
Neurotic (0) Inmate
Newly admitted
posted posted 08-30-2000 21:13

hey wes, thanks for explaining what i didnt have the patience to..... <img border=0 align=absmiddle src="http://www.ozones.com/forum/smile.gif">

riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-31-2000 08:26

I dint mean it as in some one "Has to give me an answer" kind of way. I meant it in a way that some one asks me my objective for wanting to do so, I explain to them and yet they still keep asking the same question "Why" as if they gonna answer me in the end. My reasons arent good enough? I know the purpose of a discussion board so I dont even understand this "tech-support" stuff. Am stil thankful to everyone though coz on this board I've learnt a whole lot of stuff and gotten questions which bugged me for a while answered.

timothymcnulty
Neurotic (0) Inmate
Newly admitted
posted posted 08-31-2000 09:03

if you assume that the people that ask "why" are not going to answer your question, then dont bother posting anything at all. i had full intention of answering your question but your little "... and still none of y'all has answered me but keep asking why." remark caused me to not even care if your question was answered at all. sometimes it takes a little more info to solve a persons problem, and you should be able to supply that information the best you can.

you expect answers to your questions and comments and you expect us not to? no one said that your reasons were not good enough, how can they say that when they have no idea what your reasons are in the first place. if so many people are having trouble understanding what you are describing then it is pretty obvious you should do your best to be more specific.

i think the main thing that bothers me is that you pay no attention to other critisim of the page.

no right click scripts, as well as disabling buttons for page security does not even work. if anyone wants to find a way around it they will, plain and simple...i hope that you dont think that your solution is full proof.

riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-31-2000 14:22

"i think the main thing that bothers me is that you pay no attention to other critisim of the page."
If you are referring to the links and some one being stuck in the message board, I know about the problem but the page is just there up until the main site which am working on is completed. Its no concern of now coz on the main page I also state that the page is temporary. Even the script I was soughting wasnt meant for the site as is but the site am working on which resides on my computer.

riddim
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2000

posted posted 08-31-2000 16:51

la'dsasha I found a script that acts like the one you mentioned at http://www.albecomics.com/ but the one I got disables other people from putting your page in their own frames. Its at http://www.kallbackafrica.com/simply/keep.htm

« BackwardsOnwards »

Show Forum Drop Down Menu