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

Prevent GoDaddy code from showing up in source code

Discussion in 'Black Hat SEO' started by sfidirectory, Aug 28, 2011.

Tags:
  1. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    Hey everyone,

    I know how to block them tacky GoDaddy banners they display for free hosting (using a simple css fragment) but am wanting to completely eliminate it from showing up in my source code, eg when I visit my site in a browser I have a look at the source code and right down the bottom the GoDaddy iFrame etc is there.

    It's probably not that big of an issue but it is a bad look for when I claim that I produce fully valid HTML/CSS websites, and the only warnings I get are in regard to the GoDaddy code.

    If anyone knows how to do this I will be greatful!
     
  2. bowcot84

    bowcot84 Junior Member

    Joined:
    Jan 2, 2010
    Messages:
    117
    Likes Received:
    18
    Give me am example site and I can probably help.

    Suggest jquery .remove() method. Quick search might help you.
     
    • Thanks Thanks x 1
  3. phpbuilt

    phpbuilt Jr. VIP Jr. VIP

    Joined:
    May 16, 2011
    Messages:
    1,650
    Likes Received:
    5,208
    Occupation:
    $ from websites I own.
    Location:
    putting monkeys in paypal
    You say you're fixing it with css. I used to fix it with javascript.

    Code:
    window.stop()
    Execute that in a javascript block at the end of your page and whatever comes after that won't render (no godaddy ads).

    Producing fully valid HTML/CSS websites isn't a selling point. If your customer knows what it means they know it doesn't mean anything. If your client doesn't know what it means they won't know to ask anyways. If someone knows what it means and they actually care about it, they're a super geek web designer and you won't be making sites for them anyways.
     
    • Thanks Thanks x 1
  4. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    The bit.ly link in my signature goes to my site that I'm talking about here. I have only just started getting deep into Javascript etc... maybe there is a visibility function that can alter the source code displayed when you use "view source"? I've also been looking at DOM scripting and maybe that might be a good place to start...
     
  5. phpbuilt

    phpbuilt Jr. VIP Jr. VIP

    Joined:
    May 16, 2011
    Messages:
    1,650
    Likes Received:
    5,208
    Occupation:
    $ from websites I own.
    Location:
    putting monkeys in paypal
    I know what you want to do, but there isn't any method available which will remove code from the source of a webpage sent by the server. You can blank out what you see by looking at a web page with css but not the source code.