<p>Şu anki sayfanın adresi "benimSitem" değil ise</p>
<p><a href="https://wolkanca.com.tr/">wolkanca.com.tr</a></p>
<pre><code>
$(location).attr('host'); // wolkanca.com.tr:8082
$(location).attr('hostname'); // wolkanca.com.tr
$(location).attr('port'); // 8082
$(location).attr('protocol'); // https:
$(location).attr('pathname'); // /sayfa/
$(location).attr('href'); // http://wolkanca.com.tr/sayfa/?test=1#site-content
$(location).attr('hash'); // #site-content
$(location).attr('search'); // ?test=1
</code></pre>
/* wolkanca.com.tr  - cdpn.io */
html {
  display: flex;
  min-height: 285px;
  align-items: center;
  place-items: center;
  justify-content: center;
}
var benimSitem = "wolkanca.com.tr";
var suankiURL = $(location).attr("hostname");
if (benimSitem != suankiURL) {
  $(
    "<span style=font-size:3rem;><span style=color:red;>" +
      suankiURL +
      "</span> benim sitem değil</span>"
  ).replaceAll("body");
}

External CSS

  1. https://codepen.io/wolkanca/pen/wvgOPWb

External JavaScript

  1. https://codepen.io/wolkanca/pen/wvgOPWb
  2. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js