Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Redirecting link

Posted on 2014-01-14
3
Medium Priority
?
514 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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

705 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