Last active
October 12, 2015 22:58
-
-
Save ataylorme/4100924 to your computer and use it in GitHub Desktop.
Disallow folder in virtual robots.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function virtual_robots_disallow( $output, $public ) { | |
$output .= "\n" . 'Disallow: /backup' . "\n"; | |
return $output; | |
} | |
add_filter( 'robots_txt', 'virtual_robots_disallow', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment