Forum Moderators: open
I am a relatively new web developer putting up a niche site that involves both forum content and the offering of various information services. I have hacked the Yabb Open Source project (written in Perl) but am writing most of the associated services using PHP. I have placed the forum in an iframe (/cgi-bin/forum.pl) inside the main php /index.php page.
My strategy is to use the forum to pull google clicks to my site.
Here is my question:
Because my forum is in an iframe, I fear that all google clicks will end up on the /cgi-bin/forum.pl page instead of my main /index.php page.
To resolve this, I was thinking of doing the following:
1. Implement a "viafrontdoor" cookie in the index.php script. The /cgi-bin/forum.pl script would then check for this cookie. If not found (i.e. someone was coming through the backdoor via google), it would redirect the user to /index.php.
2. To avoid that the google spider gets caught in a endless iframe loop, I was planning on also coding some logic in the /cgi-bin/forum.pl script that would look for any agent starting with "google".
Any feedback or tips on this tactical approach would be greatly appreciated.
Thanks,
Mark
The Netherlands