-
-
Save jrxpress/1437fc71610e1d8598ceec2b63664cf6 to your computer and use it in GitHub Desktop.
PHP: Block Robots using Headers in PHP.
This file contains 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
<?php | |
@header('X-Robots-Tag: "none, noindex, nofollow, noarchive, nosnippet, noodp, notranslate, noimageindex"'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment