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
  #1 (permalink)  
Old 07-02-2009, 10:24 PM
Junior Member
Latest Blog:
None

 
Join Date: 03-17-09
Posts: 20
iTrader: 0 / 0%
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
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #2 (permalink)  
Old 07-02-2009, 10:55 PM
htmlbasictutor's Avatar
Super Moderator
Latest Blog:
Website Testing

 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 4,553
iTrader: 0 / 0%
htmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest order
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 technical - Pm me.

Last edited by htmlbasictutor; 07-03-2009 at 01:50 AM.
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #3 (permalink)  
Old 07-02-2009, 11:20 PM
Junior Member
Latest Blog:
None

 
Join Date: 03-17-09
Posts: 20
iTrader: 0 / 0%
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.
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #4 (permalink)  
Old 07-03-2009, 12:20 AM
Hades's Avatar
Senior Web Developer
 
Join Date: 01-23-07
Location: Argentina
Posts: 1,923
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]
__________________
Cris a.k.a. Hades

HD Gaming Videos: Feeding your high-definition gaming addiction.
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #5 (permalink)  
Old 07-03-2009, 12:41 AM
Junior Member
Latest Blog:
None

 
Join Date: 03-17-09
Posts: 20
iTrader: 0 / 0%
fatfree69 is liked by many
thanks! I will see if I can work with it.
Digg this Post!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 Off


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


Site Navigation: v7n Home .::. Graphics .::. Scripts .::. V7N Web Directory .::. V7N Technology Blog .::. V7N Affiliate Program .::. Advertise

Partners: Search Engine Optimisation .::. Dedicated Server Hosting .::. Webmaster Talk .::. CPA Affiliates .::. Dedicated Server Hosting

Site Sponsored by a Hivelocity Dedicated Server.
SEO Consult, International SEO Experts
Dedicated Server Hosting
All times are GMT -7. The time now is 12:14 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


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