WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] [closed] How to remove dangerous inserted 'yoast' message in page (29 posts)

  1. Bike
    Member
    Posted 2 years ago #

    It seems like a nice plugin, but I don't want "<!-- This site is optimized with the Yoast WordPress SEO plugin v1.0.3 - http;//yoast.com/wordpress/seo/ -->" in the source code of every page!

    I see no option to turn it off, so this is blatant spam. Worse, it is potentially very dangerous: if a security hole is found, then it is too easy to find sites that use a specific version of the plugin, so they can be exploited.

    So will this be removed, made an option or does anybody know where (through which file) this gets injected?

    Cheers

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. demlasjr
    Member
    Posted 2 years ago #

    Those lines can be found in /frontend/class-frontend.php

    Line 225, 262 and 601. You can remove those "echo". However...the plugin is free, that's a way to thank to the developer. If you really want to remove it, at least make a donation to the developer.

    And don't forget, each update re-add those lines.

    Best regards.

  3. jmzolezzi
    Member
    Posted 2 years ago #

    It would be great if developers of the plugin made it easy to remove it and promoting clients from donating: Donate and remove these comments automatically.

  4. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    They're there not even for promotion that much as for debugging. Feel free to take them out but I'll never offer a way to take them out via the backend, sorry.

  5. EUSoftwareSolutions
    Member
    Posted 2 years ago #

    Hello Joost, could you please explain why you do not want to add option to remove these comments? This is indeed security threat. Thanks.

  6. loremipsum
    Member
    Posted 2 years ago #

    I use W3 Total Cache plugin for all of my projects. Among other benefits, the plugin offers an option to minify HTML, which will remove all comments from your markup. Check it out!

    http://wordpress.org/extend/plugins/w3-total-cache/

  7. demlasjr
    Member
    Posted 2 years ago #

    W3 Total Cache is crappy. High CPU consuming and too much confusing options. And I'm not sure if will remove the echos or only the comments from the CSS and JS. I find myself WP Super Cache + WP Minify + DB Cache Reloaded more attractive, efficient and are not killing my server.
    Plus...I compared W3TC with this second alternative, with the same settings, and I got each time better load time with SuperCache and WP Minify. I tested it with websites like gtmetrix, pingdom and webpagetest. Not just one test, but tens of tests.

  8. jmzolezzi
    Member
    Posted 2 years ago #

    They're there not even for promotion that much as for debugging. Feel free to take them out but I'll never offer a way to take them out via the backend, sorry.

    You are the developer so of course, you have the final word. But that doesn't make sense at all. If all plugins worked like that, we would all have a crowded head full of useful debugging comments.

    I can't see those comments at your site's head, so I guess you understand why we'd prefer to disable them.

  9. Mark (podz)
    Support Maven
    Posted 2 years ago #

    Do this:

    in the plugin look in /frontend/class-frontend.php

    Line 228:

    function promo() {
    		echo "\n<!-- This site is optimized with the Yoast WordPress SEO plugin v".WPSEO_VERSION." - http://yoast.com/wordpress/seo/ -->\n";
    	}

    change that to

    function promo() {
    		echo " ";
    	}

    That will remove what you want.

  10. demlasjr
    Member
    Posted 2 years ago #

    Mark, that's what I said 7 posts above. Also there are more lines like that which need to be edited, not just that one.

  11. Mark (podz)
    Support Maven
    Posted 2 years ago #

    demlasjr - apologies for the duplication.

  12. demlasjr
    Member
    Posted 2 years ago #

    No problem, just don't forget to include all the lines in your tutorial :)

  13. brrainstormerr
    Member
    Posted 2 years ago #

    wow, that explanation from Joost reminds me of a movie i saw lately; "As lame As it Gets" ;-)

    I agree its a good plugin, very useful, and I use it, but that doesn't mean I have to put up with providing him a free backlink just like that. Its not like his is the best wordpress plugin in the world... And if it were, Joost, you are more than welcome to charge for it... But don't come in here with all this attitude saying you will NEVER provide an option to remove it. Here's some news for you- NOBODY CARES! we'll simply edit that link out...

    Anyone using this plugin, please get it removed using the process mentioned above, you are simply throwing away your Link PR juice by keeping that line in there....

  14. brrainstormerr
    Member
    Posted 2 years ago #

    oh, and by the way, in the latest version of the plugin, there is no "function promo()".. just search for something like a "function debug" and delete the url (or, make a search for all text line containing a ".com" and delete those)... in fact, you can delete the entire line including the "echo"...

  15. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Dude, you should seriously relax. Most plugins add a debug line like that, that's what it is. It's not a link, Google will not follow it. Otherwise my PR would be way higher than it is :)

    The function is named differently now, you're welcome to edit it out, but it'll keep coming back every release.

  16. jmzolezzi
    Member
    Posted 2 years ago #

    I agree with @brrainstormerr, the debug excuse is pretty lame.

    The only way I've found to hide those comments without having to manually edit a file everytime I update is using W3 Total Cache and compressing the HTML output. This seems to hide every "debug line" added by these kind of plugins.

  17. esmi
    Forum Moderator
    Posted 2 years ago #

    the debug excuse is pretty lame.

    Actually, for those of us who do a lot of general WordPress troubleshooting and support, these comments are extremely useful.

  18. jmzolezzi
    Member
    Posted 2 years ago #

    If that's the case why not make it optional?

  19. esmi
    Forum Moderator
    Posted 2 years ago #

    Why? What's the problem with it?

  20. jmzolezzi
    Member
    Posted 2 years ago #

    Are you using this plugin at your sites esmi?

  21. esmi
    Forum Moderator
    Posted 2 years ago #

    Why? Have I used plugins with similar comments in their output? Yes.

    If you don't like them, don't use the plugin.

  22. demlasjr
    Member
    Posted 2 years ago #

    Come on guys, there is easy to remove it, but it reappear when the plugin is updated. Not big deal to remove it, but neither very annoying. However, there are some option in which All in one SEO Pro is better ^^ (my opinion)

  23. jmzolezzi
    Member
    Posted 2 years ago #

    I found Yoast's plugin better but either way you are right, both things aren't very annoying!

  24. demlasjr
    Member
    Posted 2 years ago #

    Also jmzolezzi, you don't need to compress the html if you don't want. You can remove the lines I specified above and those debug lines will be removed.

  25. Ryan Cowles
    Member
    Posted 2 years ago #

    If your only complaint about a plugin is the fact that it adds an HTML comment to your site's <head> then I think you need to relax. It's a great plugin, but if you feel that strongly about an HTML comment then don't use it.

    The only legitimate concern, as mentioned above, is the fact that if there is an exploit found in the plugin, it would be easy to find out which sites have the plugin installed. With that said, the benefits of WordPress SEO outweigh any complaint I may have so I'll continue to use it.

    Thanks Joost!

  26. ckhardy@gmail.com
    Member
    Posted 2 years ago #

    This is an awesome plugin and it's free! The least we can do is offer props to the author.

    I don't like extra html in my sites either, but because I do want to thank the author, I've added it to my humans.txt file which seems like a fine way to say thank you without adding cruft to the website.

    kind of just seems like good manners when we're using tools offered up freely

    hth

  27. truelux
    Member
    Posted 2 years ago #

    First world problems... Just remove the coding if you have a problem with it. I'd be thankful that such a plugin is 100% FREE. For you guys to come in here and bash Joost for his decision is uncalled for.

  28. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Mod, can you close this thread please?

  29. Done.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic