Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1536 from duckduckgo/la/disable-redir
Browse files Browse the repository at this point in the history
disable open redirect
  • Loading branch information
MariagraziaAlastra committed Apr 29, 2021
2 parents 45d6ad3 + 8c46a51 commit d88049d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions templates/r.tx
@@ -1,7 +1 @@
: if $r_referer_validated {
<html><head><script>window.opener=null</script><meta http-equiv='refresh' content="0;URL='<: $r_url | raw :>'">
: } else {
<html><head><script>window.opener=null</script><meta http-equiv='refresh' content="10;URL='<: $r_url | raw :>'">
<body>Redirecting to external URL <a href="<: $r_url | raw :>"><: $r_url :></a> in 10 seconds.
: }

<body>An attempt to redirect you to <: $r_url :> has been blocked.</body>

0 comments on commit d88049d

Please sign in to comment.