Skip to content

Commit

Permalink
Prevent robots from indexing proxified pages. Fixes joshdick#30.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdick committed Jan 19, 2016
1 parent 2ac6f8b commit 50d0817
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miniProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ function($matches) use ($baseURL) {
header($header);
}
}
//Prevent robots from indexing proxified pages
header('X-Robots-Tag: noindex, nofollow');

if ($forceCORS) {
//This logic is based on code found at: http://stackoverflow.com/a/9866124/278810
Expand Down

0 comments on commit 50d0817

Please sign in to comment.