Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,545 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,849 people online right now. Registration is fast and FREE... Join Now!




Site I built is being re-directed to another site, without permission

 
Reply to this topicStart new topic

Site I built is being re-directed to another site, without permission

capty99
22 Aug, 2008 - 10:31 PM
Post #1

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,168



Thanked: 16 times
Dream Kudos: 550
My Contributions
Here is the deal I moved my dad's site that I built for him to my servers a week ago. Everything was fine until I checked it tonight.

The DNS change worked fine, and switched over, everything was good and the switch was complete I just pre-empted with that info just in case.

www.jlee-consulting.com is the address but it redirects to www.ebook-archive.org
blog.jlee-consulting.com is his new blog i put up for him and it works fine

I'm the only one that touches it, he doesn't even have access, and I definitely didn't set up a redirect to this site. I don't know how to troubleshoot this problem since I can't see the code before the switch over, but I have downloaded the index files and am not seeing anything new in the code there either.

Also did a quick google search for ebook-archive.org to see if it was some sort of php exploit address someone used and didn't find anything on it.

any other ideas for where to look?

p.s. just double checked every file that is loaded from the index, and nothing special in those either.
User is online!Profile CardPM
+Quote Post

no2pencil
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
22 Aug, 2008 - 10:42 PM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,465



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(capty99 @ 23 Aug, 2008 - 02:31 AM) *

The DNS change worked fine, and switched over,

nslookup shows that this URL resolves to 208.97.189.181

The whois information for that ip address is as follows

OrgName: New Dream Network, LLC
OrgID: NDN
Address: 417 Associated Rd.
Address: PMB #257
City: Brea
StateProv: CA
PostalCode: 92821
Country: US

NetRange: 208.97.128.0 - 208.97.191.255
CIDR: 208.97.128.0/18
NetName: DREAMHOST-BLK5
NetHandle: NET-208-97-128-0-1
Parent: NET-208-0-0-0-0
NetType: Direct Allocation
NameServer: NS1.DREAMHOST.COM
NameServer: NS2.DREAMHOST.COM
NameServer: NS3.DREAMHOST.COM
Comment:
RegDate: 2006-01-11
Updated: 2006-04-12

Does this sound like whom you expect to be listening on your domain name?
User is online!Profile CardPM
+Quote Post

capty99
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
23 Aug, 2008 - 10:04 AM
Post #3

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,168



Thanked: 16 times
Dream Kudos: 550
My Contributions
yes its dreamhost, and since the subdomain works it has to be right.
User is online!Profile CardPM
+Quote Post

Martyr2
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
23 Aug, 2008 - 10:19 AM
Post #4

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,213



Thanked: 217 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
I just ran a script on the domain and got this as its source code...

CODE

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.ebook-archive.org/index.php">here</a>.</p>
</body></html>


So as you can see there is a 301 Moved permanently header being returned. Check to make sure that you didn't include this header anywhere in the code or that the ISP is not somehow returning a header of 301.

smile.gif
User is online!Profile CardPM
+Quote Post

skyhawk133
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
23 Aug, 2008 - 10:59 AM
Post #5

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 14,947



Thanked: 47 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
If you can't get this fixed capty, call me: ***-***-****

User is offlineProfile CardPM
+Quote Post

capty99
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
23 Aug, 2008 - 03:12 PM
Post #6

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,168



Thanked: 16 times
Dream Kudos: 550
My Contributions
i haven't found the source, i definitely don't have a redirect in there.

now i know its a 301 that will help me check it out thanks, how'd you get that code jw?

and i send dreamhost a ticket, they don't have a redirect showing up in their system for me so i will see what they say when they get back to me.

kenworthy i'll call you tomorrow if i can't fix it. thanks pops you can remove your number i got it in my phone now.
User is online!Profile CardPM
+Quote Post

Martyr2
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
23 Aug, 2008 - 05:08 PM
Post #7

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,213



Thanked: 217 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
I found out it was a 301 by running a chat script (Gotta love the flexibility of mIRC scripting sometimes) I coded up years back which downloads page source but since it is not a browser, it will not execute any code nor will it follow a 301 redirect as browsers are instructed to. It opens a raw connection to the page and fetches the page contents.

See your browser is receiving the 301 from the server and immediately redirects without even showing you the original page. That is why you are not seeing any delay in the redirect.

smile.gif

This post has been edited by Martyr2: 23 Aug, 2008 - 05:09 PM
User is online!Profile CardPM
+Quote Post

Jayman
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
23 Aug, 2008 - 06:44 PM
Post #8

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,947



Thanked: 42 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
It seems to be working now. I just tested the URL and was sent to the correct page.

Chris, I removed your number to prevent unneeded calls. Capty said he had it.
User is offlineProfile CardPM
+Quote Post

capty99
RE: Site I Built Is Being Re-directed To Another Site, Without Permission
24 Aug, 2008 - 11:14 PM
Post #9

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,168



Thanked: 16 times
Dream Kudos: 550
My Contributions
yeah i knew why it wasn't gonna show me code.... just didn't know a way around it. thanks.


dreamhost fixed it , they had a misconfigured file. i've never had a dreamhost problem but had 2 in the last week.... one guy killed the mysql db and this was an incorrectly configured file. apparently i need to go dedicated.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:55PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month