1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable javascript on YOUR site? Possible?

Discussion in 'Black Hat SEO' started by T3xstorm, Jun 15, 2009.

  1. T3xstorm

    T3xstorm BANNED BANNED

    Joined:
    Feb 27, 2009
    Messages:
    107
    Likes Received:
    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
     
  2. aReJay

    aReJay Power Member

    Joined:
    Apr 29, 2009
    Messages:
    736
    Likes Received:
    237
    Location:
    Down under
    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
     
  3. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
  4. aReJay

    aReJay Power Member

    Joined:
    Apr 29, 2009
    Messages:
    736
    Likes Received:
    237
    Location:
    Down under
    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
     
  5. mortenb

    mortenb Newbie

    Joined:
    May 21, 2009
    Messages:
    9
    Likes Received:
    0
    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>
     
  6. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    <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>
     
  7. chuckz

    chuckz Newbie

    Joined:
    Jul 15, 2008
    Messages:
    31
    Likes Received:
    5
    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.
     
  8. T3xstorm

    T3xstorm BANNED BANNED

    Joined:
    Feb 27, 2009
    Messages:
    107
    Likes Received:
    12
    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: Jun 16, 2009
  9. aReJay

    aReJay Power Member

    Joined:
    Apr 29, 2009
    Messages:
    736
    Likes Received:
    237
    Location:
    Down under
    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
     
  10. T3xstorm

    T3xstorm BANNED BANNED

    Joined:
    Feb 27, 2009
    Messages:
    107
    Likes Received:
    12
    remove the javascript code lol? Its a CPA offer that im iframing
     
  11. neablas

    neablas Newbie

    Joined:
    Apr 22, 2009
    Messages:
    3
    Likes Received:
    0
    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
     
  12. B166ER

    B166ER BANNED BANNED

    Joined:
    Jun 10, 2009
    Messages:
    146
    Likes Received:
    179
    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!!
     
    • Thanks Thanks x 1
    Last edited: Jun 16, 2009
  13. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    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.

    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?
     
  14. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    I did not know this, thanks!