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 8895649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:50:14+00:00 2026-06-14T23:50:14+00:00

I want to prevent some subpages ( with games ) from my website to

  • 0

I want to prevent some subpages ( with games ) from my website to be opened in multiple tabs per browser. I want just 1 subpage to be opened per browser. I am using PHP as server side language, and the games are in SWF format.

The user goes to the game listings, and then clicks a game icon, and a popup opens . The href attribute has been disabled and a onclick event has been added to each game icon.

But this doesn’t prevent the user from copying the game URL, then opening a new tab manually and paste in the URL.

Is there any way to achieve my goal ?
I was thinking that when the user clicks the game image, to use ajax and call a PHP on my server to set a security token. When the game is finished embeding, destroy the token. If the user copy pasted the URL into another tab, it will not work.

But what happens if the user refreshes the game page then ? Got any suggestions to this ?

Thank you

  • 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-14T23:50:15+00:00Added an answer on June 14, 2026 at 11:50 pm

    Edit: misunderstood originally. To allow only one page per user

    On click

    • Delete other tokens for that user
    • Create and store the token for that user
    • Deliver the page (using that token in the URL)
    • On page load it checks the token
    • Generate a timestamp on the page (not the server, i.e in JS)
    • The page periodically polls the server (or use long polling / push) with the token and the timestamp
    • On poll:
      • token exists and ( timestamp >= stored_timestamp or stored_timestamp =NULL )
        • yes: set timestamp to current if greater or stored_timestamp =NULL, do nothing else
        • no: kill this game
      • token does not exists
        • kill this game

    If they refresh it will set a new timestamp, killing their old game. If they open in a new browser it will refresh the timestamp, killing their old game.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to prevent users from running my cron job manually. Apart from using
I want to write an application that can prevent some application from launching. My
I want to prevent my CSSs from being cached on the browser side. How
I want to prevent some parts of my javascript, written with jQuery if that
I want to prevent my activity from restarting when I change the orientation from
I want to prevent my application from being reverse engineered and decompiled by someone
I want to prevent my asp.net / c# 2008 web pages from being cached
I want to prevent users from commenting on deleted threads. I've set a variable
I want to prevent iframe elements from triggering the OnDocumentComplete event every time. For
What solutions do I have if I want to prevent the UI from freezing

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.