How to make an already set url/link go no where

I have a particular link placed on various websites of mine that I do not want active anymore. I do not want to go search page by page/site by site to find the url and change the href to #. Is there another way I can do it? Is there a code I can place on the page I don’t want active to make the page appear blank without deleting the contents?

If I clicked on a link and it either went nowhere (changing the href to #) or it went to a blank page, I would not be very happy.

1 Like

Hi there menalpoly,

this CSS example makes the link neither look like nor behave like a link…

<html lang="en">

<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">

<title>de-linking a link</title>

<!--<link rel="stylesheet" href="screen.css" media="screen">-->

<style media="screen">
body {
    background-color: #f0f0f0;
    font: 1em/150% verdana, arial, helvetica, sans-serif;

a[href=""] {
    position: relative;
    z-index: -1;
    color: #000;
    text-decoration: none;


 <a href=""></a>




If you already have the site on your computer, many text editors will do a search for the entire site for the link. Then you can do a replace, individually or globally, of the link, changing it to “#” or removing the a href entirely. Then you would upload the changed pages.


Why not go to the sites and remove the links individually?
This being a topic for backlinks and Google, too, it is recommended you remove as many unwanted links yourself as you can.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.