[RESOLVED] [2008] url cloaking using vb.net
Hey all,
I have been scouring looking for code example on url cloaking / redirection and cookie dropping using vb .net and haven't had any luck. Perhaps someone here knows where to point me to figuring this out? Basically I want to cloak a url specifically for affiliate marketing and redirect them to another page.
The status bar would not show the real url and the address bar would show the cloaked page address and not the real one. I thought of having a button to toggle that feature on and off so that I could choose whether to show the real address or not. And finally encrypt the page using javascript or something similar to hide the redirect code.
What would happen is user would input affiliate url to cloak and software would take the url and drop that affiliate cookie into an image and return the code encrypted in js.
Anyone know how to tackle this one?
Thanks in advance. :)
Chris
Re: [2008] url cloaking using vb.net
Is this a web application or windows form application?
Re: [2008] url cloaking using vb.net
Sorry, it is a windows application that will take the user input and embed the affiliate cookie into an html image tag and then encrypt that using javascript and output to the user for them to copy and paste into their pages.
Re: [2008] url cloaking using vb.net
shouldn't the redirection simply be done on your webserver? you give whatever URL on your server you want, so long as when the user hits that URL, your server serves up the right page...
Re: [2008] url cloaking using vb.net
I have a script that does that already, but no, I need the application to take the user input and add the affiliate cookie to the html image tag and then encrypt that using js and output that to the user for them to copy / paste into an html page.
Re: [2008] url cloaking using vb.net
so what is your question exactly? How to write the javascript? how to do the encryption? how to generate the HTML?
Not sure where you are stuck.
Re: [2008] url cloaking using vb.net
Well I am pretty new to this and I'm stuck getting any part of this done, I went to look for code examples but it seems that no one has anything to reference doing something like this. I could easily pay for someone to do this but I'd like to learn this myself.
Re: [2008] url cloaking using vb.net
He's essentially asking how to override the text being displayed in the webbrowser control's address bar, title bar and status bar.
Re: [2008] url cloaking using vb.net
Well, that and everything else that kleinma mentioned.
Re: [2008] url cloaking using vb.net
I can understand what you're doing now. You want to implement a subtle form of user tracking by introducing an affiliate information in an image. You cannot add a cookie to an image. A cookie is a file that sits in a particular folder of a user's machine which is read and understood by a browser. You can add an affiliate ID or any other information you want to an image simply by:
http://www.example.com/image.jpg?aff...yotherinfo=123
I'm not sure what you want from the javascript though.
Re: [2008] url cloaking using vb.net
Here is an example of what I am looking to do with this application.
http://chrismorris.ws/images/cloak.jpg
http://chrismorris.ws/images/create_page.jpg
And here is the code once the page is created:
Code:
<html>
<head>
<title>
</title>
</head>
<script language="JavaScript">
eval(unescape('%77%69%6e%64%6f%77%2e%73%74%61%74%75%73%3d%27%4f%70%65%6e%69%6e%67%20%50%61%67%65%68%74%74%70%3a%2f%2f%27'));
s=unescape('%3c%65%6d%62%65%64%20%73%72%63%3d%27%68%74%74%70%3a%2f%2f%27%20%77%69%64%74%68%3d%27%32%27%20%68%65%69%67%68%74%3d%27%32%27%3e%3c%2f%65%6d%62%65%64%3e%3c%4d%45%54%41%20%48%54%54%50%2d%45%51%55%49%56%3d%22%52%65%66%72%65%73%68%22%20%43%4f%4e%54%45%4e%54%3d%22%30%3b%75%72%6c%3d%68%74%74%70%3a%2f%2f%22%3e');eval(unescape("%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%73%29%3b"))
</script>
</html>
[2008] URL Cloaking Issues
Here is the form that I have created.
http://www.chrismorris.ws/images/cloaker.jpg
I need to take the text from the number of textboxes the
user selects and have that embed into an html image tag
and encrypt using Javascript when user clicks generate code.
How is that done?
Chris