PHP Classes

File: pgdrop.php

Recommend this page to a friend!
  Classes of Luis Martinez Ulloa   Tor Geoip Tools   pgdrop.php   Download  
File: pgdrop.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Tor Geoip Tools
Generate IPTables rules to block the range of a IP
Author: By
Last change:
Date: 2 years ago
Size: 174 bytes
 

Contents

Class file image Download
#!/usr/bin/php
<?php

require_once './geoip.php';
require_once
'./geoip.conf.php';
$geoip = new xzy\geoip($geoipPath);
$rule = $geoip->dropSegment($argv[1]);
echo
"$rule\n";