Does any WP plugin exist for this?

mhtro

BANNED
Joined
Dec 3, 2017
Messages
1,411
Reaction score
1,892
If this is in the wrong section mods please move it!

So I found this site: https://wealthygorilla.com/
and when you try to go back it redirects you to some of their posts making it a hell on earth to leave their site without closing the tab.

My question: does any WP plugin exist that does this kind of thing?
 
Not tested but should work. I know most people on here can't code but the majority of WP themes these days have head and footer options for code snippets of Javascript in their theme options. Wack one of these in there and see what happens

Code:
history.pushState(null, null, document.title);
window.addEventListener('popstate', function () {
    history.pushState(null, null, document.title);
});

or

Code:
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
    history.pushState(null, null, document.URL);
});
 
There was a js script shared on bhw to do this, I think. Not sure if there are any wp plugins though.

Be careful though, I did this on my site and it was flagged up by google so I had to remove it.

Oh thank God it's in Google's crosshairs, that shit is killing me.




Would absolutely use it on my own site though, can't lie.
 
I use this script to redirect my back button.

<script type="text/javascript">
!function(){
var campaign_link = "https://yourdomain.com"; // REPLACE WITH YOUR LINK
var t;
try{
for(t=0;10>t;++t)history.pushState({},"","#");
onpopstate=function(t){t.state&&location.replace(campaign_link)}}
catch(o){}
}();
</script>

it works well if you redirect it to an affiliate offer which has exit intent popup with discount.
 
It's probably called the FuckMySiteUp plugin.
 
Back
Top