IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 9th, 2005, 04:19 AM
Raijinken Raijinken is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 1 Raijinken User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 21 sec
Reputation Power: 0
Processing google file requests

We have a web site which contains, among other information, some pdf files. If somebody finds one of these pdf docs in google, in addition to the window containing the file, we want a new window showing our site's main page to be opened. We wonder if there's a way to make it. Can we write a dll which detects google requests and process them? In this case, how?. Is there another way to make it?

Thanks in Advance

Reply With Quote
  #2  
Old June 9th, 2005, 05:53 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 37 m 29 sec
Reputation Power: 92
If you could get a PHP script with a .pdf extension to be parsed as a PHP script then you could check the referrer. You'd create this PHP script so that it was called exactly the same as the current PDF file and save it in place of the current PDF document. You'd need to move the actual PDF files elsewhere and make sure that they weren't being parsed as PHP scripts. The PHP script would check if the referrer is from Google, and if it was, it could redirect to another page where the actual PDF file and the main site could be opened in two windows.

[edit]
Of course, any scripting language should work for this. I just mentioned PHP because that's what I'm most familiar with.
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Processing google file requests


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway