nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

how to figure out redirected website

This is a discussion on how to figure out redirected website within the Domain Name Server forums, part of the Mastering Servers category; hey all lets say that i entered no-ip.org(website for domains/ip redirection) and configured that for example nixcraft.com redirects to google.com ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Domain Name Server

Linux answers from nixCraft.


Domain Name Server Discussion on domain name server including BIND and other servers.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-27-2009, 11:28 PM
eawedat's Avatar
Senior Member
User
 
Join Date: May 2008
Location: Palestine
OS: Kn0ck3D
Posts: 112
Thanks: 1
Thanked 2 Times in 2 Posts
Rep Power: 2
eawedat is on a distinguished road
Send a message via MSN to eawedat
Smile how to figure out redirected website

hey all
lets say that i entered no-ip.org(website for domains/ip redirection)
and configured that for example nixcraft.com redirects to google.com

how can a user who does not know that there is a redirection way to figure out that google.com is being redirected to nixcraft.com

you'll tell me to use cmd->ping google.com->get the ip and enter it

its right for short domains,, not long ones..
for example if i redirected see.helpyourself.com to www.koko.com/~bardinkos/123.html

user who enters "see.helpyourself.com" will not be able to know what is the original web path which has been redirected to.


is there a way to know?
thanks.
__________________
Be to be and not to pee
Reply With Quote
  #2 (permalink)  
Old 07-27-2009, 11:35 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,677
Thanks: 11
Thanked 240 Times in 180 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

wget can tell you if it is 301 redirection or something else done using a webserver server side scripting. For e.g.
Code:
wget www.example.com
or
Code:
curl -I www.example.com
Here is working example
Code:
 curl -I www.cyberciti.biz/rss
Code:
HTTP/1.1 301 Moved Permanently
Location: http://www.cyberciti.biz/rss/
Date: Mon, 27 Jul 2009 18:05:11 GMT
Server: lighttpd
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux Website f0rt The Hangout 1 07-07-2009 02:01 PM
question i cant figure out computerguru Ubuntu / Debian 1 11-27-2008 03:57 AM
Cron to check a website and restart it if down permalac Shell scripting 3 05-16-2008 06:41 PM
How to host website using adsl router zeebala CentOS / RHEL / Fedora 2 04-01-2008 09:23 PM
How to host website using adsl router zeebala CentOS / RHEL / Fedora 0 11-29-2007 07:15 PM


All times are GMT +5.5. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38