Solved

Force IE to replace image url

Posted on 2011-03-01
6
272 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

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