I truly apologize for my harsh words. I request you please don’t take it personally. I really appreciate your hard work and concept behind this plugin. My suggestion is to kindly improve it, and I wish, this plugin may become very popular.
Actually, on my friend recommendation I tried this plugin. But, I really didn’t find what this plugin’s description is claiming.
You have mentioned 3 site name
– Sniply
– Linkis
– Start A Fire
As I checked, In plugin core file there are only 2 JavaScripts.
– If JavaScript will be disabled, then this plugin is not going to work.
– secondly, below script has included link of 1 site “stfi.re” Why? You have mentioned above 3 sites e.g, sniply, linkis,start a fire, so how exactly it will work with 2 other site.
// 1st script
<script type="text/javascript">function parentIsEvil() { var html = null; try { var doc = top.location.pathname; } catch(err){ }; if(typeof doc === "undefined") { return true } else { return false }; }; if (parentIsEvil()) { top.location = self.location.href; };var url = "'.get_permalink().'";if(url.indexOf("stfi.re") != -1) { var canonical = ""; var links = document.getElementsByTagName("link"); for (var i = 0; i < links.length; i ++) { if (links[i].getAttribute("rel") === "canonical") { canonical = links[i].getAttribute("href")}}; canonical = canonical.replace("?sfr=1", "");top.location = canonical; console.log(canonical);};</script>
// 2nd Script
<script type="text/javascript"> if (top.location != self.location) { top.location = self.location.href; } </script>
I would suggest, instead of putting this heavy script in head
Why not add just one single line in head,
<meta http-equiv="X-Frame-Options" content="deny">
Or for Apache web server simply add this code in .htaccess
# Don’t allow any pages to be framed – Defends against CSRF
Header set X-Frame-Options DENY
That’s simple.
Sincerely,
Gulshan