Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    2

    Exclamation How to Limit when users can access a web page from certain times?

    I wanted to limit when a client can view a certain webpage only during the hours of 12pm to 2pm. Is there any way I can achieve this by using cpanel? Can anyone llep me on this?

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    There's no such feature in cPanel. You might be able to use some client side scripting like javascript or server side using a perl CGI or php script, but either are not within the scope of this forum.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    2

    Default

    IS it possible for me to run a cron job that limits access to the file for a certain time?

  4. #4
    Member
    Join Date
    Oct 2004
    Posts
    103

    Default Hi

    Hi,
    I guess you could run a script (via cron) at 12 along the lines of
    #!/bin/bash
    chmod -R *chmodvalue* /home/thisuser/public_html/*

    then at 2

    chmod -R *chmodvalue* /home/thisusr/public_html/*

    Hope that might help...
    also just to warn you... doing this.. can get messy.

    Cheers
    Nerdzoll

  5. #5
    Member
    Join Date
    Feb 2005
    Posts
    147

    Default

    You can setup a cron job to simply stick an .htaccess file where you want to deny access Deny From All.

    You could also setup two httpd.conf files and simply have them swap out and auto restart apache.
    - Paul Shepperd
    4 years cpanel exp. 6 years linux exp. 8 years security exp.
    6 years corporate startup/small business exp.
    If I responded, and you want to IM me you can do so, not saying I will for sure have time to help, but my aim is public, thats what its there for. My email is: ME @ pshepperd.com
    " Life is short, make money, and have a good time, live every day to its fullest."

Similar Threads & Tags
Similar threads

  1. times users are allowed to check email ( DONT WORK)
    By konrath in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 06-26-2006, 08:23 PM
  2. Denie access on new account web page, how?
    By Jemrada in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-08-2005, 11:33 AM
  3. Sites are fast, but CPanel main page times out?
    By nothsa in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-08-2005, 11:27 AM
  4. web page access through ssl
    By dragonengineer in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 03-02-2005, 06:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube