+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: 【求助】关于www.Host1Free.com Counter Code代码

  1. #1
    Junior Member leehae is on a distinguished road
    Join Date
    Jul 2010
    Posts
    4

    【求助】关于www.Host1Free.com Counter Code代码

    网页源代码最后的这段代码是干什么的?好像这段代码造成rss页面错误。

    Code:
    <!-- www.Host1Free.com Counter Code --> 
    <noscript> 
    <a href="http://www.host1free.com/" title="Free Hosting">Free Hosting</a> 
    <a href="http://www.host1free.com/web-hosting" title="Free Web Hosting Service">Free Hosting</a> 
    </noscript> 
    <!-- End of www.Host1Free.com Counter Code -->
    

  2. #2
    Member robisozo is on a distinguished road
    Join Date
    Jul 2010
    Posts
    56

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    是的。请找找以前的链接,内含官方去除该代码的链接。

  3. #3
    Junior Member leehae is on a distinguished road
    Join Date
    Jul 2010
    Posts
    4

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    Quote Originally Posted by robisozo View Post
    是的。请找找以前的链接,内含官方去除该代码的链接。
    用官方的这个链接Remove Counter Code - Host1Free.com
    怎么还是不能删除?不是立即生效的吗?

  4. #4
    Member wsqws is on a distinguished road
    Join Date
    Jun 2010
    Posts
    39

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    官方说,该页面还未制作完成。
    我问过他们,他们说因为先前在安装BOX3,没时间制作。ORZ

  5. #5
    Member robisozo is on a distinguished road
    Join Date
    Jul 2010
    Posts
    56

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    嘿嘿。那去看看我以前的回复吧。有使用.htaccess去代码的方法。不过我不想再重复说了。这里说点主要的。
    因为这里的php是作为apache的模块运行,所以支持通过修改.htaccess文件更改php设置(使用php_value和php_flag)。
    这些代码是通过php的auto_append_file设置添加的。这个设置指定的是在PHP代码执行完毕后追加执行的PHP文件,通过把这个设置修改成其它文件(比如一个空的PHP文件)就可以去掉代码了。文件路径是绝对路径。
    好了说完了。其它不解释了。不懂去baidu或google一下。

  6. #6
    Moderator flasherwade is on a distinguished road flasherwade's Avatar
    Join Date
    Apr 2010
    Posts
    901

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    翻了一会,居然没找到robisozo以前写的方法了
    不过这里有一个:
    cant use rss in wordpress

  7. #7
    Member robisozo is on a distinguished road
    Join Date
    Jul 2010
    Posts
    56

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    那个例子真有点曲线救国的意味= =。
    我的方法举个例子吧。比如我的用户名是abc,域名是abc.tk。
    文件/home/abc/domains/abc.tk/public_html/blank.php的内容如下:
    <?PHP

    ?>
    文件/home/abc/domains/abc.tk/public_html/.htaccess的内容如下:
    php_value auto_append_file /home/abc/domains/abc.tk/public_html/blank.php
    如此就可以去除abc.tk域名下的代码。

  8. #8
    Moderator flasherwade is on a distinguished road flasherwade's Avatar
    Join Date
    Apr 2010
    Posts
    901

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    robisozo的方法更简单些,而且不需要另外的空间,赞~!
    想深入了解下可看:php auto append ,prepend file using htaccess | Php Development

  9. #9
    Junior Member leehae is on a distinguished road
    Join Date
    Jul 2010
    Posts
    4

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    谢谢各位帮助。
    本人对这些东西一无所知,不过在各位的帮助下弄好了。

  10. #10
    Member wsqws is on a distinguished road
    Join Date
    Jun 2010
    Posts
    39

    Re: 【求助】关于www.Host1Free.com Counter Code代码

    Quote Originally Posted by flasherwade View Post
    robisozo的方法更简单些,而且不需要另外的空间,赞~!
    想深入了解下可看:php auto append ,prepend file using htaccess | Php Development
    话说,这样做会令帐户被暂停吗?
    感觉就像封掉官方的广告没什么两样。

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34