473,385 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Hot links

Hello.

I found a lot of hot-links in the form, for example:
<img src='http://www.my-works.org/images/faces/wave1.gif' />
that points directly on the images on my site.

Actually I deny this type of links by using RewriteRule Apache meccanism.

I would like anyway, to send a javascript to browser as a response of this
type
of request. This javascript should create the image on-fly directly on
browser site.

How can I do it?

Thanks
Misha
Jul 20 '05 #1
8 1253
in news:bu**********@fata.cs.interbusiness.it,
misha typed:
Hello.

I found a lot of hot-links in the form, for example:
<img src='http://www.my-works.org/images/faces/wave1.gif' />
that points directly on the images on my site.

Actually I deny this type of links by using RewriteRule Apache
meccanism.

I would like anyway, to send a javascript to browser as a response of
this type
of request. This javascript should create the image on-fly directly on
browser site.

How can I do it?

Thanks
Misha


If I understand correctly.... instead of denying the image, you could simply
redirect to another image. yes???


Jul 20 '05 #2
> If I understand correctly.... instead of denying the image, you could
simply
redirect to another image. yes???


It is simple to redirect to another image on my site.
I would like to send a javascript instead

Misha

Jul 20 '05 #3
On Wed, 14 Jan 2004 14:54:25 +0100, misha <in**@my-works.org> wrote:
It is simple to redirect to another image on my site.
I would like to send a javascript instead


Surely, if a browser is expecting image data[1], you should only send
image data. If you send mark-up, wouldn't the browser just ignore it as it
wasn't expecting it?

Mike
[1] That is, it sends a HTTP request for
http://www.yoursite.com/someImage.gif

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #4
> Surely, if a browser is expecting image data[1], you should only send
image data. If you send mark-up, wouldn't the browser just ignore it as it
wasn't expecting it?


Thanks for response. You are right.

I would like to know if there is some method to make browser change it's
mind
and execute my script.

Misha
Jul 20 '05 #5
misha wrote:
If I understand correctly.... instead of denying the image, you could


simply
redirect to another image. yes???

It is simple to redirect to another image on my site.
I would like to send a javascript instead

Misha


You cannot send javascript in place of an image, but you can create an
image that says your message, and send it in replacement.

You can also use PHP, if you want to send back dynamic images.

Brian

Jul 20 '05 #6
> You cannot send javascript in place of an image, but you can create an
image that says your message, and send it in replacement.

You can also use PHP, if you want to send back dynamic images.


Thanks
Misha
Jul 20 '05 #7
On Wed, 14 Jan 2004 16:20:31 +0100, misha <in**@my-works.org> wrote:
Surely, if a browser is expecting image data[1], you should only send
image data. If you send mark-up, wouldn't the browser just ignore it as
it wasn't expecting it?


Thanks for response. You are right.

I would like to know if there is some method to make browser change it's
mind and execute my script.


I very much doubt it.

With links (<A href="...), the browser is free to interpret and render the
data according to its type, whether that be markup, image or sound (etc)
data. However, with IMG elements, the browser is being told explicity that
the data is an image; it should be interpreted and displayed as such. At
best, you could always return an image like this one:

http://www.mlwinter.pwp.blueyonder.co.uk/steal.gif

It's a 1024x768, two-colour GIF and only 4800 bytes. It would have a low
impact on bandwidth and be quite effective at making your point. I know of
a site that does this sort of thing be cause of their massive bandwidth
problems (they actually return a 32767x32767 plain white GIF at just under
710 kilobytes). They also check the server logs and ban requests that
originate from sites that link to them without permission.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #8
Thanks for your response.

I thought to send an ads invocation script that I use on my site, but it
seems impossible.

Misha
Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: valerian dinca | last post by:
Hi, This is my latest article for your consideration. If you think that this article could interest your subscribers it is free to reprint in your ezine and/or newsletter as long as you: 1....
2
by: chris hughes | last post by:
Can anyone please tell me how to create a javascript that I can place in any page that will disable all the links or just change all the hrefs to # Many Thanks Chris Hughes
7
by: Chris | last post by:
I'm using eight links listed horizontally as a menu on my site. I'm using font-variant:small-caps and they are padded so that they mimic buttons. My gripe is with the way IE handles the focus...
4
by: Isabelle | last post by:
Hello all, I want two sets of links to do different things; one set within *content* and the other *navigational* elements. In particular I want the *hover* rollover effect to work differently...
18
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand...
10
by: andreister | last post by:
He there! I've discovered that the ================================================= document.links('link_id_here').href = "something"; ================================================= is...
3
by: Ptaku25 | last post by:
I have in a few first page defined links (font blue color) row by row which are links for to appropriate pages in this pdf document. Could you tell how to get this links in javascript lang ???...
0
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order...
8
by: DJA | last post by:
Hello, I site I designed has links that don't seem to work in mac IE 5.2. In my site I'm using CSS to imitate image buttons by using the background image property along with a little extra...
0
by: Peter Horlock | last post by:
Hi, Using css (that should be working in Firefox 2,3 and Internet Explorer 6,7 at least), I would like to create the following: My Links: Link1 +show more links <!--- This is shown when...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.