• Resolved jdschultz

    (@jdschultz)


    I am running wordpress as a content management system and would like to restrict access to one specific page. The page is basically a blank page that pulls information from a php file. Password protecting it in admin does not seem to work. If possible, I’d like to limit access to this specific page only with htaccess.

    Is this possible? If so, any suggestions on how to accomplish the desired result?

    In the end, I need to restrict access only to that page and no others.

    The page in question can be found here: https://schultzauctioneerslandmarkrealty.com/calendar/

    Thank you for your help!
    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jdschultz

    (@jdschultz)

    I ended up resolving this request on my own. I ended up running a script on the page that password protects the data.

    If you’d like info, let me know.

    Thanks!

    Hello, i think this is the problem i would like to resolv. I would like people who write pages to go in pages but not all of them. you have the solution ???

    Howdy,
    I had a similar problem and hunted around plugins for some time trying to find one that would allow access from a range – the nearest plugin was actually aimed at preventing certain IP addresses from accessing the same material.

    The solution in the end took me to add config lines to the Apache Virtual Host container for the site of my blog. The reason you need to use Location is that the request your browser will make is likely to be to a permalink – which has no physical presence on the box, and therefore will not be trapped by a <Directory> directive.

    So, I don’t think you can use Location directives in .htaccess files for the simple reason that htaccess files are used to handle control over physical parts of the tree.

    If you have access to the virtual host config you could put something like this in:

    <Location /private>
    Order Deny,Allow
    Deny from all
    Allow from 234.123 181.45.7.8
    </Location>

    Similarly you could protect a location by any normal Auth method – :- htpasswd, Auth_ldap – and so on.

    Its not elegant, but I didn’t have the time to write something similar in a plugin. Maybe soon!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘limit access to a specific page with htaccess’ is closed to new replies.