Solved

Redirecting link

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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 …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

777 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