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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-11-29 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.