Free Web Hosting Forum
Go Back   Free Web Hosting Forum > 000WebHost Services > Customer Assistance
Reload this Page how can I remove the analytics code
Reply
 
Thread Tools Display Modes
(#31 (permalink))
Old
Rosusmegus's Avatar
Junior Member
Rosusmegus is on a distinguished road
 
Posts: 3
Join Date: Jul 2009
Location: Stockholm, Sweden
Send a message via MSN to Rosusmegus Send a message via Skype™ to Rosusmegus
Default 07-21-2009, 09:20 PM

So.... Here we are newly installed now.....

Still get that code inserted in some places....
rss feed for ie8 is down the drain for an example.....

So.... Now another question.... If i go for Premium service here.... will that help? Or is it time to go somewhere else?

And... I'm not interested with circumventing stuff...
I dont want any code / scripts added to my site except what i put in there... Need complete control...

Possible here? Or not?

Exprience kinds of light up warnings in my head that if i stay here with that code still being "shot-in".... it will "bite-me-in-da-bu..." later

Like i said... I love this place It's just that this time it's for a project that i need to be able to really evaluate professionally...

Last edited by Rosusmegus; 07-21-2009 at 09:32 PM. Reason: rephrase 2
Reply With Quote
Sponsored Links
(#32 (permalink))
Old
sizzlefire's Avatar
Administrator
sizzlefire is on a distinguished road
 
Posts: 4,531
Join Date: Apr 2008
Send a message via AIM to sizzlefire Send a message via MSN to sizzlefire Send a message via Yahoo to sizzlefire Send a message via Skype™ to sizzlefire
Default 07-21-2009, 10:07 PM

Quote:
Originally Posted by Rosusmegus View Post
So.... Here we are newly installed now.....

Still get that code inserted in some places....
rss feed for ie8 is down the drain for an example.....

So.... Now another question.... If i go for Premium service here.... will that help? Or is it time to go somewhere else?

And... I'm not interested with circumventing stuff...
I dont want any code / scripts added to my site except what i put in there... Need complete control...

Possible here? Or not?

Exprience kinds of light up warnings in my head that if i stay here with that code still being "shot-in".... it will "bite-me-in-da-bu..." later

Like i said... I love this place It's just that this time it's for a project that i need to be able to really evaluate professionally...
If you upgrade, then there is no such code.
Reply With Quote
(#33 (permalink))
Old
Junior Member
bonzairob is on a distinguished road
 
Posts: 3
Join Date: Dec 2010
Default 12-06-2010, 12:26 PM

I've just run into the same error. It wouldn't bother me too much, other than it's happening because I want to use a .php file to load some JavaScript.
I've done some testing, and the script doesn't turn up in .js files, which is good. However, even after changing the header of the PHP file to text/javascript, it's still included.
Keep the code by all means, but please: make it check the header type, not the file extension!
Reply With Quote
(#34 (permalink))
Old
Junior Member
luctranquoc is on a distinguished road
 
Posts: 1
Join Date: Jul 2012
Lightbulb Just fix it - 07-14-2012, 04:06 AM

Just fix it with 000webhost analytics code management.
Original resolution: http://www.sometip.tk/2012/07/remove...on-000webhost/
Reply With Quote
(#35 (permalink))
Old
Junior Member
jadtech is on a distinguished road
 
Posts: 11
Join Date: Jun 2012
Default 07-14-2012, 03:14 PM

I thought I read some wher in another post maybe this forum maybe another that there is something that can be added to the htacess file that could get rid of this type stuborn code..
Reply With Quote
(#36 (permalink))
Old
ShocK's Avatar
Senior Member
ShocK is on a distinguished road
 
Posts: 4,106
Join Date: Jul 2011
Location: UK
Default 07-14-2012, 03:21 PM

There is, about half way down this post - FAQ - Frequent Ask Questions Guide!
Reply With Quote
(#37 (permalink))
Old
WorldOfBullcraft's Avatar
Senior Member
WorldOfBullcraft is on a distinguished road
 
Posts: 125
Join Date: Feb 2011
Location: Grabów (Poland)
Post 07-15-2012, 09:32 AM

There are a few ways to remove the analytics code and in a few degrees.
You can completely shut it down, you can shut it down for certain filetypes, you can shut it down for certain files (where you don't want the injection to take place).

Shutting it down completely can be achieved trough the control panel: http://members.000webhost.com/analytics.php

Shutting it down trough the .htaccess file can be achieved by adding this line to your .htaccess file:
Code:
php_value auto_append_file none
Save and reupload to your server and the analytics code is not injected anymore.

Allowing the injection to take place on certain file extensions only can be achieved trough adding and altering this code to your needs:

First some examples to protect .extension groups like .htm(l) or .php etc.
The link to the Analytics counter I found trough looking at the source of a injected html file so this should be accurate.

If one is to add this to the .htaccess you inject only into html files in the directory where you place this .htaccess:

Code:
 
<FilesMatch "\.(html?)$">
php_value short_open_tag "Off"
php_value auto_append_file "http://analytics.hosting24.com/count.php"
</FilesMatch>
And if you want it to affect php files, change the first line to this:

Code:
 
<FilesMatch "\.(php)$">
This you can do for each .extension, or even add a few extensions in the same line like:

Code:
<FilesMatch "\.(php|html|htm)$">
If you only want to protect certain specific files from being injected you can use the following code (which I use myself for a security script that cannot be injected because it corrupts that script):
Code:
<Files the_file_you_want_protected.php>
php_value auto_append_file none
</Files>
Ofcourse you will have to rename "the_file_you_want_protected.php" to whichever file it really is that you want protected including it's extension.
It would effectively protect that file from being injected while leave the rest of the site alone and have Analytics have it's way on the site.

This is from my own trial and errors. You can find my original post here: [Wordpress] Website Defender Plugin Problems

Good luck, Mike.

Edit, My 100th post yay :P


Crafting Bulls since 2010!
Innectis Canibus Cum MMX!

How the fuck can people manage to write posts, if they can't even read in the first place!

Last edited by WorldOfBullcraft; 07-15-2012 at 09:36 AM.
Reply With Quote
(#38 (permalink))
Old
kuroneko's Avatar
Senior Member
kuroneko is on a distinguished road
 
Posts: 112
Join Date: Jul 2012
Default 07-26-2012, 08:04 PM

I don't really understand.

It's simple to get rid of the code, if you have a php file then just do the following:

Code:
</html><?php die(); ?>
Your website will die before it can show the analytics code.

But is this even legit?


Anything about web design and development
frostproject.org
Reply With Quote
(#39 (permalink))
Old
Junior Member
leeway is on a distinguished road
 
Posts: 1
Join Date: Aug 2012
Default 08-10-2012, 08:43 PM

You can go to http://members.000webhost.com/analytics.php to disable analytics code
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com