Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8090499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:44:40+00:00 2026-06-05T19:44:40+00:00

I am making n alcoholic site that has a gateway for age verification wish

  • 0

I am making n alcoholic site that has a gateway for age verification wish is called default.html an it’s in the root of my webspace. I have used Joomla which has two index files, one from the root folder and the other from the template that i am using. Now i know i can restrict direct access using .htaccess file but my question is should i put it in the root folder or in my templates folder?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:44:42+00:00Added an answer on June 5, 2026 at 7:44 pm

    I set a cookie in the gateway page, then check if it exists in the template’s index file. So once you land on the gateway the cookie is set.

    This is the code that sets the cookie

    var theDate = new Date(); var oneYearLater = new Date(
    theDate.getTime() + 31536000000       );    var expiryDate =
    oneYearLater.toGMTString(); document.cookie =    "myTusker=tuskerUser;
    expires=expiryDate;
    

    Then in the templates index file i check if the cookie is set and if not, it redirects to the gateway page called default.php. Below is the code snippet.

    $cookies = $_COOKIE;
    
    if(!array_key_exists('myTusker', $cookies)) {
    
    header("Location:http://zmbiz.net/tpfnew/default.php");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Making an Flex App. Just wondering if anyone has created something that fits automatically
Making a small WCF test program which is based on a Store that has
making a multi-language site with codeginiter. I have created two folders. One for french
Making a mobile friendly site, I have a single field and a submit button.
Making game of life I need to a have a grid that is 30x20
Making a ship game because I am incredibly original.. With that aside, I have
im making an application where i have to load my database from html file
Making a new site but something is happening to it in IE8. The social
Making a word document of our network set-up. We have about 7 servers and
Making a new site but something is happening to it in IE. I've purchased

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.