How i can block Google Adsense in my Website? Is there any HTML or PHP code i can past in my website to block Google Adsense to be shown? Thanks
Yeah something like that, i do have access to the page, but its not allowing me to remove/change anything, its just allow me to add code. a simple code that can block google adsense will be great, PHP or HTML or Java
It have nothing to do with PHP, HTML, I don't know I think you will be using this on a fraudulent activity .. just a feeling ..
It's really not your business dude, when you can't help there is really no needs to wast people time with your stupid feels lol
When replying to stupid threads will depend on you, I will ask your permission Now at little I'm sure of your intentions, and I can help, but will not help Stupid replies Reported.
I would urge all posters to respect each other. If you really feel like posting rude or harassing replies, do note that you will definitely receive infraction.
Then would just change host, or use a javascript to remove the google ads / replace the adcode to mine.. But first try to find a free host without advertising.
i have a feeling that your`e using a free hosting and want to disable the adsense they provide, am i right? if yes, can you tell me in what area of the site the adsense appear?(header, footer and etc.).
No i am not using free web hosting, i already own 7 dedicated servers, i share other companies news in my website. the problem is that when i grab their news content to my website, its included some adsense, i am looking for a code that can block those ads, because as you know its slow down the website.
Post the code which grabs their content here. So we can possibly use some regex to remove the adsense code.
It's not a short code, there is about 2-3 page of codes, i am not sure which part of codes i need to pos. I can't post all of the codes here... PM me if you can help, so i can email you those pages.....
with css.. if google ads position after <body> you can use in style.css .body {margin-top:-30px}; This is easy. (Sorry for my bl4ck nglish..)
So your content scraper isn't smart enough to remove all scripts, including Adsense? Beware, besides Adsense this scraped content could contain javascript statistics counters etc. You can delete all scripts with regex like this $s = preg_replace ('/<script.*?<\/script>/si', '', $s); PHP: