Solved

Force IE to replace image url

Posted on 2011-03-01
6
270 Views
Last Modified: 2012-05-11
Hi.

does anybody know if it´s possible to force internet explorer to replace a certain image url to an other image url.

Fx.
Every time my browser downloads this image: http://accs-net.com/hosts/Images/gds.jpg, it will replace the image with http://accs-net.com/hosts/transparent.gif

Do I make my self clear? It´s kind of diffecult to explain.
0
Comment
Question by:bongii
[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
  • 3
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
dtocci earned 375 total points
ID: 35008912
I'm assuming you don't have access to the server and html source to make the change?  If you just want the change to affect a single browser, then you can install something like greasemonkey on the browser and write a simple userscript for that particular domain.
http://www.gm4ie.com/
0
 

Author Comment

by:bongii
ID: 35008977
Hi.

Yes, I dont have access the the html code :(

Do you think it´s possible at server level? Otherwise I need th install Greasemonkey on every desktop inhouse ;)
0
 
LVL 16

Assisted Solution

by:sjklein42
sjklein42 earned 125 total points
ID: 35009135
If you have access to the Website server, it is definitely possible to do this on the server.

Create a small text file called ".htaccess" (with the leading dot) containing these lines.  Put the .htaccess file in the top-level folder of your Web site, and it should redirect gds.jpg to transparent.gif for all users who visit your web site.

If this doesn't work, please tell us what Web Server software you are using (Apache, IIS, etc) as it might be different for different server software.

Options +FollowSymLinks
 
RewriteEngine On
RewriteBase /

RewriteRule ^hosts/Images/gds.jpg$ hosts/transparent.gif

Open in new window

0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 3

Assisted Solution

by:dtocci
dtocci earned 375 total points
ID: 35009253
So do you own http://accs-net.com? 

If you've got an apache web server and access to it, then sjklein42's solution is a good one.  But if you have access to the server then I'm not sure how you don't have access to the code itself.  

Another thing you can do if you have access is simply replace gds.jpg on the server with a new image named gds.jpg without touching the code.  

Maybe I'm misunderstanding exactly what you're dealing with.  
0
 

Author Comment

by:bongii
ID: 35009483
Hi.

No I dont own the domain used in the example :)

I dont have access to the server.

The problem is, that i am using serveal cms systems from the same hosts. I want to change some pictures in the administration module because then it´s easier to know the difference between the different sites. Does it make sense?
0
 
LVL 3

Assisted Solution

by:dtocci
dtocci earned 375 total points
ID: 35009540
If you can't change anything on the server and there are too many browsers to modify, you could maybe filter traffic at your router. But someone else will have to give you an example.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

738 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