1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple script for wordpress cloaking - the problem

Discussion in 'Cloaking and Content Generators' started by smatysik, Apr 12, 2015.

Tags:
  1. smatysik

    smatysik Newbie

    Joined:
    Apr 9, 2015
    Messages:
    37
    Likes Received:
    1
    Home Page:
    Hello,
    I have a problem with a simple cloaking script, I want to check if the IP or just a person who enters the program page has a list of IP is to enable wordpress /katalog/index.php
    so I tried both in index.php:
    $ ip = $ ENV {'REMOTE_ADDR'};
    open (IPList, "iplist.txt");
    IPlist = <IPList>;
    close (IPList);
    foreach $ line (IPlist) {
    chomp ($ line);
    if ($ ip eq $ line) {
    eval ('/ catalog / index.php');
    }
    }
    and it was an error: Parse error: syntax error, unexpected '=' in /www/wycena2_www/www/wycena2.proste.**/index.php on line 4


    Do you have an idea of what I'm doing wrong?
     
  2. smatysik

    smatysik Newbie

    Joined:
    Apr 9, 2015
    Messages:
    37
    Likes Received:
    1
    Home Page:
    help anyone? please