Jump to content

Prevent Linkers...


AV1611

Recommended Posts

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]
<?php
if(!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?
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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???
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.