Solved

Force IE to replace image url

Posted on 2011-03-01
6
268 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
  • 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
A few customers have recently asked my thoughts on Password Managers.  As Security is a big part of our industry I was initially very hesitant and sceptical about giving a program all of my secret passwords.  But as I was getting asked about them mo…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

813 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

10 Experts available now in Live!

Get 1:1 Help Now