is there any code that could be added to a page which would when loaded detect what domain its on then implant it where i put the code E.g. i run proxy sites and everytime i have to change the title when i upload but it would be a great little code if i just uploaded all the files and when the page loads it detects what domain its on and enters that so it would have welcome to <code> but when it loads it would come out as welcome to domain.com
really shouldnt do it as inline code as you are then no better than PHP but the inline code version for .Net would simply be <%=Request.Url.Host.ToString %> Code (.Net):