If someone wants to poach your site, no matter what you do you will not be able to prevent it. All they would need to do is open up the source code for each of your pages, download it, and process it through a script to extract the links.
However, all the links should be pointing to jump.cgi?ID=xxx where "xxx" is the ID number of the link. If you do not allow access to jump.cgi from offsite, it will not do them much good. The add.cgi script has a routine that prevents someone from using add.cgi from off site. It looks like this:
Code:
# Check the referer.
if (@db_referers and $ENV{'HTTP_REFERER'}) {
$found = 0;
foreach (@db_referers) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
if (!$found) {
&site_html_add_failure ("Auto submission is not allowed in this directory. Please visit the site to add your entry.");
return;
}
}
If you modify it, you can put it in jump.cgi to do the same thing. You must also ensure that your domain is listed in @db_referers in links.cfg.
Here is how that routine looks in jump.cgi on my system (as the first thing in sub main):
Code:
# Check the referer.
if (@db_referers and $ENV{'HTTP_REFERER'}) {
$found = 0;
foreach (@db_referers) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
if (!$found) {
print "Content-type: text/html\n\n";
print qq|<center>
<font size="5" color="#FF0000"><b><u>NOTICE</u>:</b></font>
<p>
<b>You are attempting to execute this script from an unauthorized domain.
<br>This script may only be executed from the '<font color="#FF0000">orphanage.com</font>' domain.</b>
</center>|;
exit;
}
}
I hope this helps.