Solved

Redirecting link

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Angular JS question 24 38
Compare site how does it work 4 50
grab and show facebook pages event calendars 6 41
ost file to pst 10 51
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 …
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now