FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

another simple php request

 


warallthetm
Well, my site ( http://www.sk8te.uk.to ) has a central frame where all the content goes. So if you try to access an indivudual page ( say for instance http://www.sk8te.uk.to/pages/about.php ) then they can access my page ( or even videos) without even visiting the home page. Now i know you can do this in javascript ( i've seen it somewhere) but javascript is un-realiable and bypassible, i need a simple php script to somehow figure out if the person click a link from my site to get to the page, or if they just got there from clicking search engine indexed page.


So i need the script to redirect a peron to my home page if they are not in my frame. Name your own price, but i need as soon as you can do it. If you need to take a look at my index source then let me know and i will send it to you, (I'm talking about php source, not html Rolling Eyes )

Maybe this can be done by reading the borwsers header??? Idk.



Laughing Laughing Laughing Laughing
eepman
You can use the $_SERVER['HTTP_REFERER'] variable to check. Just take the part to compare with substr and compare it to sk8te to make sure it came from your site.
warallthetm
Yup, traveller (once again) gave me the script for free. It works beautifully (give my page a test ) http://www.sk8te.uk.to/pages/about.php
n0obie4life
Solved and closed.

-close-
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Miscellaneous -> Marketplace

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.