On Saturday 01 April 2006 15:06, Amit Vyas wrote:
If you want to stop any network user to surf your personal Wiki Following command will stop anyone from accessing your HTTP port
iptables -A INPUT -s 0/0 -i eth0 -p TCP --dport 80 -j DENY
In addition, you can configure the wiki to let only your local user access any pages in any way, and then configure a (probably not very secure) auto-login for localhost. At the end of your LocalSettings, try:
### User permissions: take all privileges from anonymous users $wgWhitelistRead = array( "Special:Userlogin", "-", "MediaWiki:Monobook.css" ); $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = false;
# not secure but good enough :-) $wgHooks['AutoAuthenticate'][] = 'authenticateLocalUser'; function authenticateLocalUser($user) { global $wgServer; if ($wgServer == 'http://localhost') { $user = User::newFromName('yourusername'); } }
where you replace "yourusername" with the actual user. Similar settings also work nicely if you still want to allow yourself or some others to access your wiki remotely, which is not possible when completely blocking the wiki with a firewall.
Cheers,
Markus
On 4/1/06, John Wiedenhoeft wiedenhoeft@gmx.net wrote:
Hi there,
I'm not sure if this is a bit too naive, and wether its a FAQ or a completely new stupid question.
I would like to setup a wiki on my notebook for my study and research notes and book excerpts. Puzzling around with hundreds of text files is quite unsatisfactory. Besides, having used wikipedia online for a while my way of thinking started to be wikified ;-)
Currently I work with didiwiki, but this has a poor search algorithm that's even case sensitive, it doesn't support formula etc.
I would like to have mediawiki on localhost, accessing it from localhost, and don't allow anybody else in the network to use it (guess a firewall is enough?).
I read the installation procedure, but it appears it is more for people having some network background.
I've installed the php packages etc. via apt-get (I'm using Ubuntu 5.10 Breezy, with Gnome), but I don't get that thing to work.
I'd very much appreciate some "mediawiki for idiots" instructions about how to make my personal wiki run.
Best regards, John
P.S.: I wouldn't need a complete page history. saving just the last 2-3 edits would be enough.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
-- Regards. Amit Vyas Site : http://www.indiaonpix.com Mission : http://www.indiaonpix.com/wiki/index.php/Main_Page Blog : http://indiaonpix.blogspot.com Project GridOne: http://discovery.bits-pilani.ac.in/gridone +91-9314299252 _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l