Skip to content

Instantly share code, notes, and snippets.

@dantetesta
Last active April 19, 2024 21:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dantetesta/d06baf0db4a47c3c56e0cba6fe6ace91 to your computer and use it in GitHub Desktop.
Save dantetesta/d06baf0db4a47c3c56e0cba6fe6ace91 to your computer and use it in GitHub Desktop.
<FilesMatch "\.(jpg|jpeg|png|gif|pdf)$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>
/*
apos RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
*/
RewriteCond %{REQUEST_URI} ^(.*)?/(wp-content/uploads/.*)$
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$
RewriteCond %{HTTP_REFERER} !^https://exames.dantetesta.com.br/
RewriteRule . https://exames.dantetesta.com.br [R=302,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment