Support » Plugin: Virtual Robots.txt » Feature requests

  • catupiryisjustcreamcheese

    (@catupiryisjustcreamcheese)



    I wanted to suggest modifying the plugin with these features. I am not a pro, so if you belive this is wrong, I would apreciate learning about it. It’s just that I believe the plugin would be safer if you update it to:

    -insert a blank index.php file in the plugin folder.
    -insert defined(‘ABSPATH’) or die(‘Cannot access pages directly.’);
    -modify the line: update_option( ‘pc_robotstxt’, $options );
    to include sanitation:
    sanitize_text_field(update_option( ‘pc_robotstxt’, $options ));

    Big respect for your work, I really like the plugin.
    Cheers

  • You must be logged in to reply to this topic.