Only show / generate link when a button is pressed

Hi,

I have a website with a lot of reference links. I want my visitors to be able to use and click them, but i don't want Google to see them all immediately. I was thinking of creating some sort of button with no follow or something, which creates the link(button) only when it is clicked.

Is this possible, if yes, how? I was thinking of Ajax maybe somehow?

Thanks!
peps03Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Chris StanyonConnect With a Mentor Commented:
If you don't want Google to follow your links then nofollow is the way forward. If you 'need more' can you tell me exactly what you need - your question is a little vague.
0
 
Chris StanyonCommented:
If you don't want Google to follow a link, you can add rel="nofollow" to it:

<a href="somePage.php" rel="nofollow">A Link to Some Page</a>
0
 
Sar1973Commented:
In JS:
<!DOCTYPE html>
<html>
<body>

<button type="button" onclick="window.location.href='Your URL'">Click Me!</button>
 
</body>
</html>

Open in new window

0
 
peps03Author Commented:
@Chris Stanyon, i want more than a nofollow tag

@ Sar1973 thanks for you reply.
Google won't even see this construction as a link?
0
 
peps03Author Commented:
Ok, i'll stick to nofollow then!
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.