deceptive redirection
February 22, 2005 8:18 PM   Subscribe

Hoping to figure out how this URL redirects.

I can't figure out how this site is redirecting me. I've checked the headers and the content and I don't see it.
how do they do it?
(warning this site redirects you to porn. i don't even want to link to it).
http://www.glenmooretransport.com/
posted by alkupe to Technology (20 answers total) 1 user marked this as a favorite
 
You can redirect things at the DNS level. This requires no HTML code.
posted by odinsdream at 8:35 PM on February 22, 2005


There's plenty of ways to do it serverside, for example a JSP page might contain:

<%
response.sendRedirect("http://hostname.com");
%>

There are equivalents for all the serverside languages out there.
posted by furtive at 8:49 PM on February 22, 2005


It's actually really lo-tech. Here's the javascript file that's in the header at that page, that does the redirect: http://www.glenmooretransport.com/1/1.js

It's not very complicated. It's a simple javascript redirect, which also takes the current location and passes it to that site as a referer. As a bonus, it replaces any & signs in the location with AND, so as not to break the referral counter on the other end.
posted by smackfu at 9:02 PM on February 22, 2005


(I should add that while it's not very complicated, I still stared at that one line of source for a few minutes before I noticed the javascript line. Since it just says 1/1.js, I think I thought it was the Javascript version or something.)
posted by smackfu at 9:12 PM on February 22, 2005


thanks, maybe that's why i missed it too.
posted by alkupe at 9:43 PM on February 22, 2005


i do have one question for odinsdream and furtive--why didn't you answer my question, and instead tell me what it could have been? is that what i asked? i did not ask how one could do this, but how this one site does.
no offense, but if you're gonna answer the question why not actually look into for a second?
posted by alkupe at 9:46 PM on February 22, 2005


Someone needs to take his Chill Pill.
posted by goatdog at 9:57 PM on February 22, 2005


alkupe, they were offering you possible suggestions to help you. For all you know, they could have checked the website and not have noticed the Javascript, thus assuming it was being done at server-level. If you're so upset with their answers, perhaps you should ask for your money back.

Oh, wait.
posted by Civil_Disobedient at 9:59 PM on February 22, 2005


Please limit comments to answers or help in finding an answer. [em added]

*cough*

However, if you feel an answer is not sufficiently relevant, don't forget you can benefit the entire community by using the exclamation point feature.

if you're gonna answer the question why not actually look into for a second?

If you're going to post a question, why criticize two reasonable attempts to help just because the responders happened to miss the exact same detail you'd overlooked? You got several good, fast responses and the correct one was among them. All is good in MeFi Land.
posted by nakedcodemonkey at 10:43 PM on February 22, 2005


*groan* Let's try that again: "...or help in finding an answer." [emphasis added]
posted by nakedcodemonkey at 10:46 PM on February 22, 2005


alkupe: Please limit comments to answers or help in finding an answer. Not rudely and ungratefully complaining about the inadequacy of help you received for free.
posted by grouse at 2:13 AM on February 23, 2005


heh. someone asks a question because they overlooked the obvious and then complains when others do the same.
posted by andrew cooke at 4:22 AM on February 23, 2005


why not actually look into for a second?

Geeeez.

Others have said it well, but I'll give you my personal reason: I didn't load the site because it redirects to porn, so I took your question and gave you a possible answer that doesn't require any HTML code, since you had already "...checked the headers and the content..." (which, by the way, was where the real answer ended up being)
posted by odinsdream at 7:39 AM on February 23, 2005


well I learned something from the possible answers. Thanks all.
posted by petebest at 9:17 AM on February 23, 2005


ok, everyone hates me. but i don't see how i was rude or ungrateful. I just asked why people answered without actually looking into it.
its true i missed the answer, but i actually looked.
tech people everywhere have a habit of treating the problem at hand as trivial and instead just kind of guessing what the answer is in a general kind of way.
Basically I think ask.metafilter.com would be a bit better if the people that answered the question actually knew the answer or actually tried to find out the answer, as oppose to all the people that just spout their guesses and show off different related peices of knowledge.
but apparently i'm in the minority.
lets see let me respond individually to some of these complaints:
its free. ok.
However i don't think that the fact that its free means that there shouldn't be any standards.
i shouldn't criticize people that tried to help. hmm..so no criticism along these lines (standards) is possible because everyone's "trying to help"? (also i didn't actually criticize, i just asked a question, which odinsdream did answer)
finally, i would like to clarify. i was not complaining that these people "overlooked" the answer (as i did) but rather that they didn't look at all (which odinsdream admitted).
anyway, please reread what i wrote. i don't think it was that bad.
posted by alkupe at 9:57 AM on February 23, 2005


alkupe: Here's a hint on getting along with your fellow human beings. If you ever feel the need to say "no offense" than that indicates that not only are you saying something offensive, but you know it is offensive. Rather than mitigating the offense, it exacerbates it by showing that you are knowingly causing offense.

No one here owes you anything, and certainly not to answer questions for free to whatever standards you set. I notice not all of your very few past answers on Ask MetaFilter here answer the original question or are even helpful.

If people give you a gift and you throw it back in their face, don't expect gifts from them in the future.
posted by grouse at 10:39 AM on February 23, 2005


how did i throw it back in their face? isn't that an exaggeration?
here's a hint for you: exaggeration tends to undercut your point.
as for your point about some of my previous points: true.
however the main thing i try to focus on now (perhaps early on i was off base) is really trying to answer the question, as oppose to just showing off my knowledge or chiming in with what everyone else has already said. as you notice, this does limit my answers, cause I try to only answer if i think i can really help.
so you really think any criticism of people trying to help is just completely unacceptable?
how about this: is it possible to criticize constructively in a nonoffensive manner? Could that be what i was getting at with my "no offense" comment?
posted by alkupe at 10:53 AM on February 23, 2005


alkupe, how about this? I trusted you had already looked into the content at the URL, including the header, since you said so in your question. If you had asked why your toaster didn't work, and you mention that you already plugged it in, well, I wouldn't check that. Even if that ended up being the problem.

It wasn't "Hey look what I know about domain name systems!" because, honestly, I don't know anything beyond what I told you. I wouldn't know how you should set up the CNAME part of the DNS record if you wanted to do redirection, so I didn't offer this level of detail. I'm not trying to show off, and neither was furtive (methinks). We provided viable answers given the criteria in your question.

Now, having said that, I think perhaps everything just got off on the wrong foot. I'm sure you meant well, but your response came off as rude (i believe others agree with me on this point). So, no hard feelings, I'm sure it's just a miscommunication.
posted by odinsdream at 1:40 PM on February 23, 2005


hey i got no beef with no one. and i agree, just a miscommunication. thanks for answering my question. although grouse sure took it personal.
posted by alkupe at 2:27 PM on February 23, 2005


I really did see it that way, no exaggeration intended. But you say you didn't mean it that way so I'll take your word on it.
posted by grouse at 2:44 PM on February 23, 2005


« Older what is origin of   |   Saving a voicemail as an audio file. Newer »
This thread is closed to new comments.