Disguising a link

Status
Not open for further replies.

bankjob

Hustle hard Bank harder
Sep 14, 2008
50
0
0
So I want to disguise my links. I'm pretty sure I've seen it posted here, but I went through search and couldn't find the exact thread so sorry about that.

Heres what I want to do: Say I have a poll/vote website where you click on an img/link to cast your vote and it sends you to a results page. Well I don't want to actually code a results page that counts all the votes, I just a fake results page. I don't want people to know that all the links go to the same page. So when a user hovers over link the browser says site.com/vote4cat or site.com/vote4dog, but really the links all go site.com/results. How can I do this?

I've searched google and found:

<a href="http://www.affiliate-link.com/" target="_top" onmouseover="window.status=’http://www.company-name.com’;return true;" onmouseout="window.status=’ ‘;return true;"></a>

I tried implementing it but it didn't seem to work, maybe the code is old and doesn't doesn't fool Firefox? Sorry I'm quite noobish at coding so any help would be great, thanks.

P.S. What I remember reading in the post I can't seem to find is that it showed you how to do something like site.com/blah?=vote4cat (is that php?) or something like that. Again I'm still learning this stuff so I might have gotten that wrong.
 


If you want to keep the url in the address bar, you can do all your actions on one page.

What you can do is make the forms (poll pages) post to themselves. When the user votes in the poll, it sets a hidden flag so that when the page reloads, it will perform an action. In principle, it would function like a confirmation/success page.

The action will reload the form page but if the flag is set, make it not output (or otherwise hide) the form fields, but output your fake results instead.

Also, if the browser has javascript disabled, the onmouseover status bar properties won't work.
 
I think I see what you're saying, but I'm really just looking for something that disguises the link on mouseover so that it doesn't appear fishy. After they get to the results page, I don't care if it shows site.com/results instead of site.com/vote4cat since it will just look normal for an average user.

I appreciate the feedback though and maybe on I will implement what you suggested on another campaign.
 
It's like 8 fucking posts down dude.

I think I found what I needed in that thread, thanks.

301 fucking php redirect. Google it.

I might try this method as well, I just didn't want to make a .php page for every link, but I guess I can't make the internet monies if I'm lazy.

Thinking about it some more, 301 redirect might actually be good, because I didn't want them to be able to go back to the vote page. This should take care of it unless they spam the back button.
 
Status
Not open for further replies.