Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!isset($_POST['go']) && !isset($_GET['go'])) die("ok");
- $domain = "unknown.com";
- if(isset($_POST['domain'])){
- $domain = trim($_POST['domain']);
- }
- else if(isset($_GET['domain'])){
- $domain = trim($_GET['domain']);
- }
- $domain = substr($domain, -35);
- if(!preg_match('/^[A-Za-z0-9.-_]$/' ,$domain)){
- $domain = "base64:" . base64_encode($domain);
- }
- if($domain == 'filmeonline.st){
- die("ok0");
- }
- $ip = $_SERVER['REMOTE_ADDR'];
- $write_ip = true;
- $handle = @fopen("clone_ips.txt", "r");
- if ($handle) {
- while (($line = fgets($handle)) !== false) {
- if(trim($line) == $ip){
- $write_ip = false;
- break;
- }
- }
- fclose($handle);
- } else {
- $write_ip = true;
- }
- if($write_ip) {
- $fh = fopen("clone_list.txt", "a");
- fwrite($fh, "$domain -> $ip\n");
- fclose($fh);
- $fh = fopen("clone_ips.txt", "a");
- fwrite($fh, "$ip\n");
- fclose($fh);
- echo "Ok";
- }
- else {
- echo "Ok2";
- }
Add Comment
Please, Sign In to add comment