Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 07-02-2009, 10:24 PM   #1 (permalink)
Junior Member
 
Join Date: 03-17-09
Posts: 20
iTrader: 0 / 0%
Latest Blog:
None

fatfree69 is liked by many
Question Hot-linked images that don't exist any more?

Hi,

I have people hot-linking photos from my website, but I do not mind it at all.

The photos on my website are sometimes removed. Is there anything I can do to have a broken hot-linked photo to display another default photo automatically?

I want a default photo to show a logo of my website and say "Photo not available" or something, if the hot-linked photo is broken.


thanks
fatfree69 is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-02-2009, 10:55 PM   #2 (permalink)
Super Moderator
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 3,216
iTrader: 0 / 0%
Latest Blog:
Website Testing

htmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web pro
Quote:
Originally Posted by fatfree69 View Post
I have people hot-linking photos from my website, but I do not mind it at all.
You do realize they are stealing bandwidth from you, don't you. i.e. costing you money.

Quote:
Originally Posted by fatfree69 View Post
The photos on my website are sometimes removed. Is there anything I can do to have a broken hot-linked photo to display another default photo automatically?
Make your replacement picture as template in Photoshop (or something like that) then save the image with the name of the image that was hotlinked.

Hey! While I was Googling to find the script to replace missing images found this: Can Hotlinking Damage Your Google Image Search Rankings? ("...the answer is yes...") There's a couple of tutorials in that article on how to handle hotlinking.
__________________
HTML Basic Tutor - Learn to code your web pages/blogs
Basic Computer Information - Computer Basics for website owners

Trouble getting indexed? Maybe it's something techincal - Pm me.

Last edited by htmlbasictutor; 07-03-2009 at 01:50 AM..
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 07-02-2009, 11:20 PM   #3 (permalink)
Junior Member
 
Join Date: 03-17-09
Posts: 20
iTrader: 0 / 0%
Latest Blog:
None

fatfree69 is liked by many
- No, it's not costing me money. I get up to 1TB monthly transfer, and each month I only achieved roughly 40GB transfers (less than 1% of my monthly limit)

- I thought of just replacing a photo with the deleted one, but I have roughly 5060 photos, and they get deleted and replaced quite often (by other users). So I don't want to have multiple "default" images with different file names. And I have hundreds that are hotlinked.

- Google Image search has no effect on my site as the photos are brought up by php searches instead of on a static page, so they aren't ever found on Google Images anyways.


Just to give you an idea of how my site works: My site

Last edited by fatfree69; 07-02-2009 at 11:30 PM..
fatfree69 is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-03-2009, 12:20 AM   #4 (permalink)
Moderator
 
Hades's Avatar
 
Join Date: 01-23-07
Location: Buenos Aires, Argentina
Posts: 1,218
iTrader: 0 / 0%
Hades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest order
If you are using apache and have the mod_rewrite module, it is possible to set up a .htaccess file and put a rewrite condition to replace images for a default one if the requested image is not found,

Check the mod_rewrite usage with RewriteCond and the -f modifier, the code should look, more or less like:

Code:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} -f RewriteRule $ /path to your default image [L]
__________________
Hades,
Ancient god, King of the Nether World, and Guardian of the Dead.
...and on my free time I'm also a web developer, contact me if you need one!
Hades is online now  
Add Post to del.icio.us
Reply With Quote
Old 07-03-2009, 12:41 AM   #5 (permalink)
Junior Member
 
Join Date: 03-17-09
Posts: 20
iTrader: 0 / 0%
Latest Blog:
None

fatfree69 is liked by many
thanks! I will see if I can work with it.
fatfree69 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Music taste is linked to personality StrongInTheArm Forum Lobby 34 11-24-2008 06:15 AM
What type of images and royalty free images do developers and webmasters need? EZRoyaltyFree Web Design Lobby 0 02-26-2008 09:11 AM
Getting linked on high PR sites.... woodcs82 Marketing Forum 8 06-02-2007 09:21 AM
Pages in google have to be linked to flashgordon Google Forum 4 07-11-2006 12:51 PM
pr showing on linked sites rankland Google Forum 3 03-15-2006 06:47 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:14 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.