log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- RISC OS 'Advent' Calendar 2024 - David Pitt (News:)
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- November 2024 News Summary (News:1)
- Latest hardware upgrade from RISCOSbits (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:3)
- Accessing old floppy disks (Gen:3)
- November developer 'fireside' chat on saturday night (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
The Icon Bar: Site Comments: Unwanted image links
 
  Unwanted image links
  cterran (21:53 16/1/2004)
  mavhc (22:05 16/1/2004)
  Kinetic (22:35 16/1/2004)
    cterran (15:23 18/1/2004)
      rich (15:25 18/1/2004)
      Kinetic (15:31 18/1/2004)
 
Chris Message #49731, posted by cterran at 21:53, 16/1/2004
Member
Posts: 163
I suspect from the logs that some people are linking to various graphics on www.photodesk.iconbar.com (as opposed to nicking them, which I don't really mind). As this uses up TIB's bandwidth -- it's theft, in effect -- I'd like to stop it if possible.
I seem to recall that this can be done by somehow redirecting external requests to some suitably admonitory replacement graphic, but I can't trace the details. Can anyone help?
  ^[ Log in to reply ]
 
Mark Scholes Message #49732, posted by mavhc at 22:05, 16/1/2004, in reply to message #49731
Member
Posts: 660
Nothing that doesn't break when people try to download your files via something like wget
  ^[ Log in to reply ]
 
Andrew Duffell Message #49733, posted by ad at 22:35, 16/1/2004, in reply to message #49731

Posts: 3262
I had this problem with the BannerCreate thing on http://banners.iconbar.com/ I used this code in a .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?banner(s)?.iconbar.com/.*$ [NC]
RewriteRule \.(png|jpg)$ http://banners.iconbar.com/bannercreate/img/hotlink.png [R,L]

I also put some PHP code in the files that create the images, but if you need that then say and I'll post it.
  ^[ Log in to reply ]
 
Chris Message #49790, posted by cterran at 15:23, 18/1/2004, in reply to message #49733
Member
Posts: 163
Andrew: many thanks. Looks just the ticket. I'm using PHP to generate the web pages (it's the texture section that people are misusing), but not for the images themselves. Does that make a difference?

Mark: would you say the inability to use wget is important enough to warrant not using this approach? I could supply the textures as a separate file for download.
  ^[ Log in to reply ]
 
Richard Goodwin Message #49791, posted by rich at 15:25, 18/1/2004, in reply to message #49790
Rich
Dictator for life
Posts: 6828
For a while wget was banned from the server anyway, unless the user was intelligent enough to specify a User-Agent, as it had been widely used as a spam harvesting tool. I *think* I got rid of that recently...
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Andrew Duffell Message #49792, posted by ad at 15:31, 18/1/2004, in reply to message #49790

Posts: 3262
Andrew: many thanks. Looks just the ticket. I'm using PHP to generate the web pages (it's the texture section that people are misusing), but not for the images themselves. Does that make a difference?
If it is just the actually images that are being hot linked then the .htaccess thing should work. The one above is just set up for jpg and png file extentions, but you can add others such as gif and zip by adding |gif|zip after the png|jpg bit.
  ^[ Log in to reply ]
 

The Icon Bar: Site Comments: Unwanted image links