Jump to content

Set Limits to user loading


cal20

Recommended Posts

Hi,

I'm just wondering if it's possible to set a code that prevents a user from constantly loading/refreshing your page.

I'd like to prevent them from opening 10 things at once, but instead having to wait like 10 or 30 seconds after opening one thing, before opening another.

 

Is that possible?

Thanks for your time.

Link to comment
Share on other sites

Oh what I meant was, limit the user to one page load at a time.

For example, if they tried to right click on the "Home", "Contact Us", and "Forums" link and clicked "Open in new window" on all 3, I want something to block 2 of them from loading if they're already loading 1 page.

 

Thanks.

Link to comment
Share on other sites

You would need to use php and java / ajax for this, track your users and guests and then store a value in a database based on the connected client i.e. a user or guest, holding their current page, use java / ajax to handle an event for the onunload event which will tell you that they have left a page, this should be sufficient to allow your server to realise that a page has been loaded but then when a user clicks a link or leaves the page your variable should be changed to reflect this.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.