BWP External Links gives you total control over external links on your website. This plugin also comes with a comprehensive domain filtering feature. One of the features allows you to redirect external links here is how you can create your own redirection page to warn and forward your readers to a third party website.
BWP External Links: Redirect-To Warning Page in 2 steps
1. Create your Warning Page
Creating the Redirect-To warning page involves creating a standard WordPress Page and inserting a JQuery function to get the location parameter from the URL and forward the browser to that location.
Here is the code snippet to insert into the page. Make sure you’re in HTML mode.
<script type="text/javascript" language="javascript">// <![CDATA[
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
var temp = 'location.href="' + getQueryVariable('url') + '"';
setTimeout(temp,5000); // Change time by changing 5000. 1000 = 1 second
// ]]></script>
You will be redirected to<script type="text/javascript">// <![CDATA[
document.write(getQueryVariable('url'))
// ]]></script>in 5 seconds.
You can change the time to redirect and the text ‘You will be redirected to … in 5 seconds.’











