Author |
Topic |
|
Guru
Starting Member
32 Posts |
Posted - 09 July 2001 : 22:34:55
|
Well I finally give it up.....
I've spent hours surfing and searching the internet for a decent URL redirector with a cloaked URL-adress, and believe it or not: I can't find a decent working 1 .
I have several URL-redirectors found in ASP, JAVA with and without dsn-less databases, but no-one gives me a proper URL-cloaking....
So, now I hope that someone can help me out with this.
I'm not that depressed that i'm on the edge of committing suicide, but this one is getting me awake. So if someone can help me out, I will buy you a nice cool glas of Heineken Beer here at the pub in the Netherlands
Thanks in advance...
Guru (so the Guru has his flaws too!)
Edited by - Guru on 13 July 2001 07:12:05 |
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 09 July 2001 : 22:57:18
|
Im not sure what you mean by cloacking, but in aso you can just use...
Response.Redirect("page.asp")
Brad |
|
|
Guru
Starting Member
32 Posts |
Posted - 09 July 2001 : 23:32:36
|
Ok, I thought i used the proper word cloacking.
What i mean is that when I have webspace let's say www.football.com, and I've built a sub-website in a sub-dir about cars the start-adres would be: www.football.com/cars (assuming there is an default.asp or index.thm in the cars directory. Now I buy just a domain-name -let's assume www.cars.com- and I redirect this to www.football.com (I know: i can redirect it directly to the cars sub, but that's not the point). I have a redirector that points it to the cars sub, but the adress of the URL in my browser say's: www.football.com/cars I want this to be "cloacked" and that it say's www.cars.com, and if i put a forum in the cars sub-dir (so: www.football.com/cars/forum) that the URL in the browser will say www.cars.com/forum.
I thought this could be done, but my question is how does the code looks like?
Is this problem clear now?
Thnx in advance.
Guru
(It looks a bit like the cloacking device used in Star Trek )
Edited by - Guru on 09 July 2001 23:34:48 |
|
|
Intrepidone
Average Member
Canada
515 Posts |
Posted - 10 July 2001 : 00:17:30
|
I have never heard of anything like that being done with URL-redirectors using ASP, JAVA ...etc...just for the simple fact that if you have a redirector from www.football.com/cars to a sub you wish to call www.cars.com, whats not to say the sub that you want to make look like a domain name, does not already have that domain name registered.
Now, if you own your own domain name, depending on who your Host is, you can set up URL Redirectors.
ie: My domain name www.techcare2000.com I can set up a Redirector to any IP Address I wish and set the new domain name for it like cars.techcare2000.com
I have never heard of a URL Redirector from using any kind of code or scripts that could "Mask" a domain name, but then again I could be wrong
Intrepidone
Edited by - Intrepidone on 10 July 2001 00:20:32 |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
|
Intrepidone
Average Member
Canada
515 Posts |
Posted - 10 July 2001 : 00:28:09
|
Brad,
You own those domain names I am guessing? I thing Guru wants a URL Redirector to a "masked" (fake) domain name.
I just copied and pasted your Post Thats kinda cool the way you have your Response.Redirect set up
Intrepidone |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 10 July 2001 : 00:34:32
|
yep those are all my domain names that just sit their and never get used.
oh ok sorry i misread it, its close to what he wants, but he doesnt want it to show the extra folder that the site pages are in. i am not aware of anyway that you can do this except for the way i have it setup. if you figure a way PLEASE let me know so I can change my code or IIS also.
Brad |
|
|
Guru
Starting Member
32 Posts |
Posted - 10 July 2001 : 00:46:52
|
Hmmm I think i have to clarify this a bit more
I have provider x where i have my domain www.lacoso.nl with -enough- webspace. I bought on the internet (gandi.net) a domain: www.babit.net. I configured www.babit.net to redirect to www.lacoso.nl/admirals (this works!) but the URL in the browser say's: www.lacoso.nl/admirals. I want it to say: www.babit.net Both are my domain's, but i just want to use my space of the one provider.... (Gandi just don't have webspace).
I thought this was fairly simple, but this can be my mistake..... Is there another way to solve this? I can set dsn-stuff etc., but then I have to ask my lacoso provider to put an dsn-entry in his table I guess.... Or can you just point to an IP-adress?
All suggestions r welcome
Guru
|
|
|
Intrepidone
Average Member
Canada
515 Posts |
Posted - 10 July 2001 : 01:48:59
|
Ok, I understand.
Actually I think you can do something like Brad did but in a META TAG in your www.lacoso.nl/admirals index or default file.
I was thinking about doing the same. My site techcare2000.com only has 10mb of web space so I will be having a redirector to my forum named forum.techcare2000.com on my Server at home. I read some place that with a META TAG in my default page at forum.techcare2000.com, instead of my forum reading forum.techcare2000.com in the browser window it will read techcare2000.com
I will see if I can still find the info
Intrepidone
Edited by - Intrepidone on 10 July 2001 01:50:20 |
|
|
stuF
Average Member
United Kingdom
561 Posts |
Posted - 10 July 2001 : 14:58:45
|
on the cars.com (whatever it is site) make an index page, blank, with two frmaes, one at the bottom which is really small, and have an onload function which will redirect the main frame to the /cars/ folder on oyur other site. you have to have a frame which is 1 pixel wide or somthing..thr onload function needs to activate the main frame though... should work...ill try digging up the code 4 u later if i get the time.
|
|
|
RDoGG™
Junior Member
USA
329 Posts |
Posted - 10 July 2001 : 16:50:27
|
quote:
on the cars.com (whatever it is site) make an index page, blank, with two frmaes, one at the bottom which is really small, and have an onload function which will redirect the main frame to the /cars/ folder on oyur other site. you have to have a frame which is 1 pixel wide or somthing..thr onload function needs to activate the main frame though... should work...ill try digging up the code 4 u later if i get the time.
try this:
<% dim bottomurl
If instr(Request.ServerVariables("HTTP_HOST"),"eznetideas") Then bottomurl = "http://www.eznetideas.com/eznetideas" ElseIf instr(Request.ServerVariables("HTTP_HOST"),"buddyconnections") Then bottomurl = "http://www.buddyconnections.com/buddyconnections/default.asp" ElseIf instr(Request.ServerVariables("HTTP_HOST"),"exhibitparts") Then bottomurl = "http://www.exhibitparts.com/exhibitparts" Else bottomurl = "http://www.freeaspcode.net/freeaspcode" End If%>
<frameset cols="100%,*" BORDER="0" FRAMEBORDER="0" FRAMESPACING="0" rows="100%"> <frame SRC="<%=bottomurl%>"> </frameset>
RDoGG™ |
|
|
Id
Junior Member
USA
129 Posts |
Posted - 10 July 2001 : 17:55:42
|
boy i bet you guys all wished you were hosting in house for stuff like this. OK, i'm pretty sure you can do this if you're running windows2000 server (any version), and if my knowledge of IIS 5 is correct then you can do this.
Create a new virtual website, point the location so it's going to something like this
c:\inetpub\football\car Then set the host header to be cars.com (may have to be www.cars.com i haven't messed with it yet, i just know it can be done, cut me some slack here 's been a while since i've read up on this stuff)
Then make sure your DNS is pointing to the correct location and everything and voila.
Now what'll happen is if they type in www.cars.com it'll hit your system, IIS'll grab the header information and kick the location to the right location, and now your root directory for cars.com is the football\car directory, and everything will be relative from there.
Now, if you're being hosted by an ISP and they're running windows2000 server/advanced sever/data server/whatever server. Then you might try calling them up and see if they could set something up like that for you.
The only other way i can think is trying out this javascript: <!-- <SCRIPT LANGUAGE="Javascript"> top.location.href="http://www.yourhost.com"; </SCRIPT> -->
in your head declaration.
Anyway, my 2 cents, hope it helps
|
|
|
Guru
Starting Member
32 Posts |
Posted - 11 July 2001 : 18:52:00
|
Thnx guys for all your input! BUT still not working....
The javascript piece doesn't seem to work, and I don't know if frames is the way to go, because everybody says to stay away from frames and use tables instead.
So the big mystery is still there...
How is it possible that a redirector site like kickme.to/?? or come.to/?? have the possibilty to show the Original URL (kickme.to/cars) and the pages being showed are on another (free) webserver.....
Please can somebody help me with what seems to become a the Quest of .....
Thnx Guru
|
|
|
wedont
Junior Member
Canada
344 Posts |
Posted - 11 July 2001 : 19:25:04
|
Hi Guru,
Here's what one of my "redirected" page has as script to do exactly what you're looking for. (My registrar: directnic.com provides the redirection for free, with or whitout the frame. No I don't work there!)
******************** <HTML><HEAD><TITLE>cars.com</TITLE> </HEAD><FRAMESET ROWS="100%,*" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0><FRAME NAME="top" SRC="http://xxxxx.com/cars/index.asp" NORESIZE></FRAMESET></HTML>
**************** This way, the domain name "cars.com" is diplayed and Remains in the browser address bar (Top) eventhough the real url is ex: xxxxx.com/cars/index.asp
So, coupled with the script above for the redirection, you should end up with the proper domain's name in the address bar.
Hope this help!
Wedont snitz ver3.1 sr2 access 2k.
Edited by - wedont on 11 July 2001 19:46:29 |
|
|
aspdesigner
Junior Member
165 Posts |
Posted - 12 July 2001 : 08:44:45
|
OK, if you have to have the /cars sub not appear in the browser, then an ASP redirect will not do the trick. However, you may want to re-think that decision, as an ASP redirect approach may be the best solution for you!
Otherwise, I can think of only two ways to do this:
1) Enclose the entire site inside a frame, as suggested above. This will work, and is the approach used by some firms who offer services to "re-direct" a simpler URL to actually point to a long URL (say, on your ISP, or a free hosting provider). Some of these firms refer to this as "cloaking", I am thinking that is maybe where you got this term. However, this approach has three major problems -
* page location will not be shown in the URL (i.e. - it will always say "www.cars.com/", no matter what page you are on!)
* users will not be able to "bookmark" specific pages on your site, as the URL that is saved is to the frameset holding your site, not to the specific page.
* many of the major search engines will not be able to properly index your framed site.
the other way -
2) If you have your own web server, you should be able to define a virtual directory to point to any subdirectory on your hard drive you want, and then just associate that with the desired domain.
If you are hosting with a hosting company, you many want to look into another provider. Many of them provide the ability to point additional domains to the same IP. More importantly for your needs, however, there are some hosting companies that will allow you to point additional domains to specific subdirectories of your main site! I have not tried one of these providers, so I don't know how well it works, but it is certainly an option worth exploring.
|
|
|
fas
Starting Member
1 Posts |
Posted - 12 July 2001 : 15:32:45
|
How you do this has alot to do with where each domain is hosted.
Are the domains both on the same box?
If so, you could use the Server.Transfer(path) method.
Their are 2 types of transfers from one page to another.
Redirects, which are the more common, and Routes, which are used in Cloaking software commonly. As an example, routes are used in cloaking software to send a search engine to another page without it knowing.
To do a route, you basically have to figure out where you want to go, then transfer the ASP engine over to that page.
Example:
<%
If instr(Request.ServerVariables("HTTP_HOST"),"siteone") Then Server.Transfer("C:\Mysites\SiteOne\index.asp") Else Server.Transfer("C:\Mysites\OtherSite\index.asp") End If %>
That might do it, if not feel free to email me at dwaldrum@imagicor.net and I'll see if I can help you more.
I have some cloaking software here I can rip through : )
Best Regards,
Dave Waldrum
|
|
|
|
Topic |
|