Forum Moderators: phranque
How do you stop a particular site linking to you? Is it possible to send the traffic to a predefined page (as oppose to the page that is being linked to)?
My site is hosted on IIS5.
A site with a similar name to mine has all their "forum" links linking to my forum. Im getting inbound links from pretty much every page on his site, and a trickle of traffic, but it's the principle! ;)
I dont want users believing both sites are related (we offer free advice and have worked hard to build up a good reputation).
Thanks
Scott :)
<edit> grammar and spelling fixed</edit>
1. Yep sent an email - no response - already had <ahem> *issues* with the webmaster before, so Im not holding my breath.
Also emailed host. No response (but they have been having some trouble of their own recently).
2. AFAIK they link to my forum default.asp - i havent seen any other links. (they link "need more help, then ask on our forum" but the link goes to my forum).
3. The forum default is .asp (Snitz forum).
Cheers
Scott
Start with this thread [webmasterworld.com], and read the linked pages as well. There's some good stuff in there.
Looks like you may want to use global.asa.
Something like this could work, I think (not tested)- place it at the top of the page:
<%
dim referrer, SearchString, SearchFor
referrer=Request.ServerVariables("HTTP_REFERER")
SearchString = referrer
SearchFor = "theirsite.com"
If InStr(1, SearchString, SearchFor) > 0 then
response.redirect "http://www.whateveryouwant.com"
else
%>
your page's html goes here
<%end if%>