Solved

Redirecting link

Posted on 2014-01-14
3
504 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

617 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