We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I understand how to restrict read and write access to a given topic or web based on login name. However, I can't seem to figure out how to restrict access based on IP address. Specifically, we have some topics that we want to be visible only to people coming from our site. I've tried various machinations with .htaccess clauses, but I apparently don't really understand what I'm doing, since the topics remain visible from the world.

Thanks!

Environment

TWiki version: TWikiRelease01Dec2001
TWiki plugins:  
Server OS: Solaris 9
Web server: Apache 1.3.26
Perl version: 5.6.1
Client OS: any
Web Browser: any

-- MarkBradford - 14 May 2004

Mark, you should really pose this question on one of the Apache mailing lists, as it is through Apache (not TWiki) mechanisms that you will get this sort of control. When you find out, let us know! If there doesn't seem to be any way of doing it using Apache, then have a look at the BlackListPlugin that I guess does something similar.

-- CrawfordCurrie - 17 May 2004

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

There is currently no option to restrict access to specific pages by IP address. You would have to write code, whcih I don't think would be too hard, and submit it as a patch. Here are some clues:

-- CrawfordCurrie - 03 Jul 2004

You can restrict access using Apache directives in .htaccess or the Apache config file. Here is an example to exclude certain IP addresses:

    Deny from 129.35.204.162 195.4.25.129

You can also allow only a certain range of IP addresses, such as:

    Allow from 129.70.133

Check the Apache documentation for details.

-- PeterThoeny - 29 Nov 2008

 
Change status to:
Topic revision: r4 - 29 Nov 2008 - 21:09:54 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback