Forum Moderators: martinibuster

Message Too Old, No Replies

Change or hide Adsense

         

monglicoh

8:31 pm on Mar 7, 2007 (gmt 0)

10+ Year Member



Hi there! my first post here...
so, I get a free host plan for my site; but the company add a AdSense banner into it.
I do wish to know how i can hide or remove or do something to make the banner not to appear anymore.
Anyone to help me?

thnaks

Hobbs

8:40 pm on Mar 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WW monglicoh,
Read your host's terms of service that you agreed to whn you signed up, I'm sure you will not be allowed to do that if you can in the first place.
Look for other hosts that don't insert advertising, or pay for your own hosting service.

monglicoh

8:45 pm on Mar 7, 2007 (gmt 0)

10+ Year Member



thanks for the quick answer.

i donīt remember if in the terms of service have something that says about it, but iīve already contact their online suport and they said i could search for a code to hide the banner, or put something in front of it, that will hide anyways...

greatstart

8:50 pm on Mar 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Way back when I used free hosting servers, I use to place the <noscript> tag before the ads. That automatically got rid of them until they found out that people were doing that, so they got smart and used their javascript before the <html> on the top of the page code.

monglicoh

8:57 pm on Mar 7, 2007 (gmt 0)

10+ Year Member



well, their code starts after the closed html tag
like this:

</body>
</html>
<!-- Ads by #*$!#*$!xx -->

</script></object></layer></span></div></table></body></html><!-- adsok -->
<script language='javascript'>
<!--
var ref = document.referrer;

if ( ref.length <= 0 )

[and so on...]

if i just put the 'noscript' code before it and after the html close tag, it will disable only the adsense or the others scripts in my page?

mike73

9:04 pm on Mar 7, 2007 (gmt 0)

10+ Year Member



I do wish to know how i can hide or remove or do something to make the banner not to appear anymore.

Pay for your hosting.

greatstart

12:59 am on Mar 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if i just put the 'noscript' code before it and after the html close tag, it will disable only the adsense or the others scripts in my page?

It should only disable the script after the </html>, but you are also risking your free hosting account from being terminated, as many providers prohibit that sort of stuff.

Plus, it may not even work since they use the </script> tag in there.

leadegroot

1:02 am on Mar 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hosting is so cheap these days that I can't imagine why you would waste your time trying to 'fix' free hosting.
FInd $10 a month and get some hosting.

vincevincevince

1:06 am on Mar 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was going to post some code here... but I am concerned you are involved with phishing or other fraud. Why would you go to so much bother to remove an advertising banner, considering the price of webhosting today? That is, unless you need to avoid any direct links to you such as credit card numbers.

encyclo

1:31 am on Mar 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld monglicoh. There's no such thing as totally "free" hosting: the company has to cover ther costs somehow. In your case, you get what you pay for, and your hosting company profits from your content.

If you want to get rid of the advertising, you will have to pay for your own hosting. At least then you can open your own AdSense account and profit from your own content. Hosting is very cheap (a few dollars a month for a basic plan), you should be able to more than cover the cost with your own AdSense.

As bypassing the scripts added by your free hosting company, it is undoubtedly against their terms of service and is likely to get you thrown off their servers, meaning you lose your site. Bear in mind too that most free hosting services have contacts which give them total rights over your site content once you upload it to their server, so they can keep your hard work for themselves and publish it (with advertising), and simply lock you out if you complain or bypass their scripts.

Please note that unfortunately this is not an appropriate venue for offering script "solutions" to breaking a hosting company's code.