Javis Posted February 6, 2008 Share Posted February 6, 2008 How would i make it so that when they type in my site name mysite.com for it to bring them to my tos and not the actaull site? My tos is a page which i made for them to have to read through the rules and agree to them before they can enter the site. Is that possible? or would i have to tell every one to go to mysite.com/tos? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/89752-help/ Share on other sites More sharing options...
Hepp Posted February 6, 2008 Share Posted February 6, 2008 You set your index page to tos.php in your server settings, or place the tos code in the index page, and make a home.html page and link after they agree to them at the bottom. Simple. Quote Link to comment https://forums.phpfreaks.com/topic/89752-help/#findComment-459933 Share on other sites More sharing options...
haku Posted February 6, 2008 Share Posted February 6, 2008 You can do it with cookies or session variables. When the person agrees to your terms, a session variable goes on their computer. Have each page check for the existence of the session variable, and if it doesn't exist, forward them to the TOS. If it does exist, let them see the page. Depending on your reasoning behind having them agree to the TOS, you may want to record their ISP addresses in a database when they agree, to have proof for the future if you may need it. Quote Link to comment https://forums.phpfreaks.com/topic/89752-help/#findComment-459936 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.