AV1611 Posted March 19, 2006 Share Posted March 19, 2006 What is the easiest way to prevent linkers on my site? If someone were to ask, I'd give the an SQL dump of all my Bible data, but I DON'T want linkers...Do I simply read a SESSION at the start of EVERY page and create the session from the main page? Is that the easiest way?//EDIT:I put this at the very top of INDEX.PHP[code]<?phpif(!isset($_SESSION['AUTH'])){session_start();$_SESSION['AUTH']='AUTH';}?>[/code]if I now check to see if the session is set in each of my processor pages, is that adequate? is there an easier way? Quote Link to comment Share on other sites More sharing options...
Humpty Posted March 19, 2006 Share Posted March 19, 2006 I am assuming that you don't want people to be able to view your pages if they get to your pages from a link from someone elses site?(That couldn't be good for google results. If wanted people to find your pages via google)Unsure of the best way, however this is the way I would have done it:Like you said:Create a session,Check on each page if that session is valid.Dislpay if it is, do nothing if it is not, (I wouldn't do nothing, I'd state that to access this page you need to enter through the home page (URL HERE).:D Quote Link to comment Share on other sites More sharing options...
AV1611 Posted March 20, 2006 Author Share Posted March 20, 2006 Could you explain the Google angle on this? I know you want people to link to your page for Google Spider, etc, but surely you don't want them linking to your files, or in this case Databases? They get my data from the web server I pay for... I don't mind them having the data, I'm in a quandry... It's Bible stuff I WANT to get out, but I don't want to get abused... Don't know what to think on this one...HELP! ADVISE??? Quote Link to comment Share on other sites More sharing options...
Humpty Posted March 21, 2006 Share Posted March 21, 2006 G'day dude,I am not 100% on google stuff but will explain what my understanding is.When google hits your home page it will auth into a session and follow links to your various other pages.So when I do a search for "Moses" i'll get a link to your page(s) (example: www.domainname/bible/search.php?criteria=moseses )But if i click on that link, because I didn't get a session auth through the home page I'll get your message along the lines of "Bugger off, you must enter through the home page at www.domainname.com.Do you understand that?The people who click the google result will goto your site but may give up when they get a message stating that they can't view the page. They may think that the site sucks and has no info instead of going to the ome page and authing a session. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.