Skip to content

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

Notifications You must be signed in to change notification settings

sqrt529/wikileaks-random-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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