Disable javascript on YOUR site? Possible?

T3xstorm

BANNED
Joined
Feb 27, 2009
Messages
107
Reaction score
12
Hey

I cant find any of my questions in search so im posting again.

I would like a code to disable javascript on MY site, reason for this? So users cant click contact! (Its javascript) and if i block that, cant report.

Tex
 
Sounds like you are on free hosting and trying to prevent people from reporting your site.

There are certainly things that you can do to prevent the execution of that function. However I dont believe you can simply disable javascript. PM me your webaddress and I will take a look at what we can do.

Cheers
aReJay
 
The noscript tag does that.
http://www.w3schools.com/TAGS/tag_noscript.asp

No it doesn't. <NOSCRIPT> provides alternative content when the visitor has disabled scripting in their browser. Read the article before posting next time.

aReJay
 
You can remove the click event on the DOM element. That way nothing will happen when the user clicks the contact button.

Something like:
<script type="text/javascript">
document.getElementById(yourelement).onclick=null;
</script>
 
No it doesn't. <NOSCRIPT> provides alternative content when the visitor has disabled scripting in their browser. Read the article before posting next time.

aReJay

<rant>
You are totally noob mate.
I 've been hacking using noscript before you were born... :cool:
</rant>

Let me shed some knowledge on your ignorant arrogance.

Code:
<script>
alert('aReJay: Just a fucking noob');
</script>

This pice of code inside the body of an html page WILL popup a message box stating the obvious.

Now if someone does the following...
Code:
<noscript>
<script>
alert('Wtf? Why didnt this run? I AM a noob???');
</script>
</noscript>

This baby will NOT pop up the message box.

Now, I would suggest that you go study a bit and then you might be able to comment again on this topic.

<rant>
I hate arrogant fools that think they know stuff. You people need to fucking study and actually test before you open your f&*%&$%^king mouth.
</rant>
 
<rant>
You are totally noob mate.
I 've been hacking using noscript before you were born... :cool:
</rant>

Let me shed some knowledge on your ignorant arrogance.

Code:
<script>
alert('aReJay: Just a fucking noob');
</script>

This pice of code inside the body of an html page WILL popup a message box stating the obvious.

Now if someone does the following...
Code:
<noscript>
<script>
alert('Wtf? Why didnt this run? I AM a noob???');
</script>
</noscript>

This baby will NOT pop up the message box.

Now, I would suggest that you go study a bit and then you might be able to comment again on this topic.

<rant>
I hate arrogant fools that think they know stuff. You people need to fucking study and actually test before you open your f&*%&$%^king mouth.
</rant>

Actually, aReJay's right. The only reason that message wouldn't pop is because <noscript> tag is for showing content for users without scripts enabled. Obviously, that means they will only see what's inside the <noscript></noscript> tags if they have scripting disabled. Essentially, that means it's technically impossible to execute a script that's contained in the noscript tags.

You really should have read the article before posting...and then read it a second time before defending your original post. Nobody wants bad info, and you're spreading it like the plague.
 
Thanks arejay, and jazzc, http://www.blackhatworld.com/blackhat-seo/members/48939-mortenb.html all repped +, jazzc can you do that though if its iframed? I dont know if it would work?

Also im not on a free web host arejay, on a shared.

Mortenb, will this work in iframe?
 
Last edited:
The reason I thought you may have been on advertising supported hosting is it appeared you were not able to edit the element directly. If you can directly edit the element, why not just remove the javascript code?

aReJay
 
remove the javascript code lol? Its a CPA offer that im iframing
 
Code:
<xmp></xmp>

kills all script reference .. html too from what i remember.

not really sure what you're after as I didn't read the entire thread
 
you could try:
Code:
<script>
nodeIframe.docShell.allowJavascript = false;
</script>

you can also try putting an opening <noscript> in your code before the iframe (and after if you can).

AND

you can easily disable javascript in the iframe for internet explorer by changing the security level basically telling IE that the contents of the iframe are not to be trusted and dont run scripts in it with:

Code:
<IFRAME SECURITY="restricted" src="http://www.microsoft.com"></IFRAME>

take that cpa advertiser!!
 
Last edited:
The only reason that message wouldn't pop is because <noscript> tag is for showing content for users without scripts enabled. Obviously, that means they will only see what's inside the <noscript></noscript> tags if they have scripting disabled. Essentially, that means it's technically impossible to execute a script that's contained in the noscript tags.

It is rather easy to grasp chuckz, I fail to see why you don't. Take any page that has javascript in it and works. Now put <noscript> after the <body> and </noscript> before the <body>. Save. Visit the page now WITHOUT disabling javascript yourself, just like you visited it before. The script inside the page will NOT run this time.

So, what did we effectively do? We disabled javascript in that page. We did not remove it, we did not change any browser settings in a magic way, we just said "do not execute any script between my <noscript> tags". Thus, javascript disabled for that matter.

I can't make it simpler.

You really should have read the article before posting...and then read it a second time before defending your original post. Nobody wants bad info, and you're spreading it like the plague.

I won't bother repeating myself. Go test and if you can prove me wrong, I will humbly apologize. Till then, my examples stand (you can eaasily tests them, I did...). And who 's the plague guy now?
 
Back
Top