We suggest you create a user account with Sunset Rainbow to better protect your product key.
Documentaion is maintained on our website.
Sunset Rainbow's Proxy Out detects whether visitors to your website are using a proxy service or not. You can use this information to provide enhanced services to proxy users or to deny services to proxy users.
SQL Encoder requires MySQL. If you need to work with a different database please contact Sunset Rainbow's support team.
Requests for new features are welcome and may be added to future editions of this software. Just contact us! (See Contacts section for email address).
If ionCube loader is not installed and you have followed the setup instructions included with your copy of the software, please refer to ioncube.com.
ionCube is a registered trademark of ionCube Ltd (ioncube.com)
Note: All links will open in a different window/tab.
2. Go to the web address: YOURSERVER/sunsetrlib/proxyout/example.php
Option B. If you have your own database connection script:
1. Edit --> sunsetrlib/proxyout/img.php
Then img.php will refer to your database script.
You can now use Proxy Out in your own web pages.
2. To run the Test Page:
Edit --> sunsetrlib/proxyout/example/db.php
Go to the web address: YOURSERVER/sunsetrlib/proxyout/example.php
For more information about the ionCube loader see ionCube.
Proxy Out requires a database connection and a special fetch script. Examples are included with your Proxy Out software package. You should copy the fetch script (img.php) and rename it, placing it somewhere else on your website. Then refer to this location (path) when calling Proxy Out.
Example database connection script: db.php
<php
// You can use your own EXISTING db connection scripts...
// instead of this one.
//Connect To Database
global $dbconnection;
global $db;
function opendb()
{
$hostname='myserveraddr'; // change to DB Server address given to you by your ISP
$username="myusername"; // change to DB username
$password="mypassword"; // change to your DB password
$dbname=$username; // your ISP may require something else here!
global $dbconnection;
if (!($dbconnection = mysql_connect($hostname, $username, $password)))
{
die('Cannot connect to DB');
}
global $db;
if (!($db=mysql_select_db($dbname, $dbconnection)))
{
die('Cannot use DB '.$dbname.'.');
}
}
opendb();
?>
Example fetch script: img.php
<?php
// Change this to the location of your database connection script. See example/db.php
require_once('example/db.php');
// --- Do not change anything below this point ------------------------------------------
require_once('proxyout.php');
sr_proxyOut_query();
?>
// wherever your DB connection script is
require_once('db.php');
// Location of Proxy Out for PHP 5
require_once('sunsetrlib/proxyout/proxyout5.php');
$s=new sr_proxyOut();
$s->queryfetch();
echo $s->$english;
// Wherever your DB connection script is
require_once('db.php');
// Location of Proxy Out
require_once('sunsetrlib/proxyout/proxyout.php');
$r=sr_proxyOut_queryfetch();
echo $r['english'];
|
Properties
See sr_proxyOut_fetch for property meanings. |
Methods
|
| Array Property | Meaning |
|---|---|
| status |
-2=DB Error
-1= DB not setup or empty 0=Client IS NOT using proxy 1=Uncertain (try fetch again later) 2=via proxy (seldom used) 3=via proxy |
| proxy_ip | Only set if status is 2 or 3. |
| client_ip | Client IP. Will not be set if you explicitly pass client_ip to the function and it has previously been identified as a proxy server. |
| verified_client_ip | Only set if status is 0. Null otherwise. |
| english | Human readable description of status |
| Value | Meaning |
|---|---|
| 1 | Address is private. |
| 0 | Address is public. |
| path | URL path to PHP image script from the root directory. Omit the leading slash. The DEFAULT path is 'sunsetrlib/proxyout/img.php' The following example refers to a file in the 'myimages' directory on your server: 'myimages/foo.php' | wait | Not recommended: Optional Microseconds to wait after performing the scan. More time increases the chance you can detect a new proxy or status with sr_proxyOut_fetch() during the same page loaded. Example: 250000 (.25 seconds) |
Example: myfolder/foo.php
Warning: [obfuscated](_yxy_manual.txt.compiled): failed to open stream: Permission denied in /srv/inhouse/public_html/sunsetrainbow.com/help/manual.php on line 678