Alex Rivera | Logout

Webhoster inserts a javascript which brokes my code how to remove it?

Asked 2010-02-15T21:01:12.597
28

I use the free webhost 000webhost. The service is okay but it inserts some javascript counter into every file and request. The script looks like this.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

If i do a jquery post it breaks my code and I get no response.

<?xml version="1.0"?>
<response>
 <status>1</status>
 <time>1266267386</time>
 <message>
  <author>test</author>
  <text>hallo</text>
 </message>
 <message>
  <author>test</author>
  <text>hallo</text>
 </message>
 <message>
  <author>test</author>
  <text>hallo</text>
 </message>
 <message>
  <author>test</author>
  <text>hallo</text>
 </message>
 <message>
  <author>admin</author>
  <text>hallo</text>
 </message>
</response>
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

How can I fix that? How can I remove the hosting javascript code?

Edit
Report

1 Answer

5

According to the FAQ, you can go to http://members.000webhost.com/analytics.php to disable the analytics:

How to disable analytic code from my site? (Note: in some case you might need to add this "php_value auto_append_file none" to your .htaccess)


Alternatively, you could edit your .htaccess file by adding this line:

php_value auto_append_file none
answered 2012-07-28T11:45:48.613

Your Answer