473,657 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1257
in news:bu******** **@fata.cs.inte rbusiness.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.******@blueyo nder.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.******@blueyo nder.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
3336
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. Print the article in its entirety. 2. Print the resource box with the article in it's entirety. Please notify me if you use the article.
2
11120
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
10550
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 rectangle on these links. It insists on drawing this crazy shape that traces the text, which with small caps looks rather assinine. Firefox handles the same task very gracefully (yeah Gecko!) and I would like to force IE to do the same. The site...
4
2940
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 in each of those sets. How do I do this in CSS? Class function... two style sheets? I'm lost, please help! : =) Newbie to CSS,
18
10735
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 where they have been. I also agree to the background: Too many web authors keep uniform link colors or their pages, thereby confusing the users. What I have a hard time agreeing to is his conclusion that web authors should deliberately change the...
10
5380
by: andreister | last post by:
He there! I've discovered that the ================================================= document.links('link_id_here').href = "something"; ================================================= is not applicable for the Firefox (even for the 1.0.6), and I'm falling into passing through the array and checking each link id.
3
2720
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 ??? Which method or function I should to invoke to get links which arer defined in my pdf document ??? Regards, Piotrek
0
2377
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 he had placed will be displayed in a DataList. Also assume that the OrderID of the last order is 13. The details of the earlier orders placed by a particular user (when the user places more than 1 order) can be viewed by clicking links. The...
8
2341
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 markup to make it work. When you mouse over the button the hover state is activated and the 'over' graphic is displayed, and the link url is displayed in the bottom left corner of the screen. When clicked, though, nothing happens and you are not...
0
1814
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 someone clicks on a plus image next to Link1 Link2(lined up with Link1) Link3 (lined up with Link2)
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6174
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1730
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.