Gossamer Forum
Home : Products : DBMan : Customization :

Block the other domain to use the DBman

Quote Reply
Block the other domain to use the DBman
hi here,
Look at the following posts that teach how to block the other domain to use my DBman but it seems not to work properly

http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/001833.html

http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/001262.html

Even though the error message came up, the whole thing like modify form, still show up under the error message. So, people can still modify the record from the other domain.

Does any one know how to fix it??

Your help would be appreicated.
Quote Reply
Re: Block the other domain to use the DBman In reply to
I don't know if this would work or not, but I would put

Code:
&check_url;

Right at the beginning of db.cgi, before

Code:
$db_script_path = ".";

Also, at the end of sub cgi_error (from the other thread) I would add

Code:
exit -1;

That way, the referrer is checked before anything else is done and the script will exit after the error page is printed out.


------------------
JPD