Solved

Redirecting link

Posted on 2014-01-14
3
492 Views
Last Modified: 2014-01-14
Hello,

how can I change/redirect link when I don't have access to the source.

Let's say I am using online service, where there are objects (image) like this: http://chart.apis.google.com/chart?cht=mm&chs=22x28&chco=be835e,be835e,000000&ext=.png

I want that it would load from http://myexamplewebsite.com/image.png instead of that image from apis.google.com.

If i would have access to the source i simply could change code, but right now I don't have access to it.

What i tried:
change'ing hosts file (that instead of one link it would load another).
was searching for firefox plugins.

But I didn't found any tool, nor have an idea how to make it.

Sorry for my broken english, hope you understood my question.

Fast example:
you visit google.com, and instead of Google logo (https://www.google.com/images/srpr/logo11w.png), it would load Yahoo logo (http://upload.wikimedia.org/wikipedia/commons/9/94/Yahoo-logo.jpg)


I even not sure, which categories I should choose for that question.

Thank you
0
Comment
Question by:Neznayka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

by:gplana
ID: 39779845
I don't think this is possible. You should have access to source code to change the link. If not, anyone could change it by another image... so only authorized users can do this.
0
 

Author Comment

by:Neznayka
ID: 39779893
I need that only I would see the change. I know that it is technically possible, I just don't know how.
0
 
LVL 15

Accepted Solution

by:
gplana earned 500 total points
ID: 39779972
Oh, if the change should just be shown on your computer, you can use the local DNS to redirect make domain chart.apis.google.com be redirected to you domain.
If your computer is windows based, edit file c;:\windows\system32\etc\drivers\hosts with a text editor (such as notepad) and add a line that redirects this domain to your ip. The all charts.api.google.com requests from your computer will be redirected to the IP you entered.

Remember to remove DNS local cache after changing hosts file, by issuing "ipconfig /flushdns" command and also removing all caches on your browser.

Hope it helps
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This video teaches viewers about errors in exception handling.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question