Skip to content

sqrt529/wikileaks-random-mirror

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

DESCRIPTION

wikileaks-mirror.pl is a Perl script, which returns either a working random Wikileaks mirror or a complete list of working mirrors. It can write the list to a file and read from that again to prevent downtimes of the official Wikileaks Website.

OPTIONS:

-l				print mirrorlist to stdout

-lo <outfile> 	print mirrorlist to file

-r				print random mirror from wikileaks website

-ri <infile>	print random mirror from file 

-m				set your own wikileaks mirror url (like http://www.wikileaks.de/Mirrors.html)

To redirect your website users to a random Wikileaks mirror, you can use this php code:

$mirror = shell_exec('/path/to/wikileaks-mirror.pl -r');
header('Loation: '.$mirror);

Or from mirror file:

$mirror = shell_exec('/path/to/wikileaks-mirror.pl -ri mirrors.txt');
header('Location: '.$mirror);

Flattr this git repo

About

Perl script, which returns either a working random Wikileaks mirror or a complete list of working Wikileaks mirrors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages