Apr 30

Just go to

http://sitereview.bluecoat.com/sitereview.jsp

and type your website/proxy and click on submit button

You get something like this…

The page you want reviewed is http://www.a1001.co.nr/ (Check another site)
This page is currently categorized as Proxy Avoidance
Last Time Rated/Reviewed: > 7 days

For one of my sites www.a1001.co.nr I got it as Proxy avoidance which means it has been actaully blocked by the same way you can check out for anywebsite to see if your site is blocked or not (Gaming sites etc.,)

Apr 27

Here is a tutorial which will explain how to pass Javascript variables to Php.This tutorial works only for files under the same server

Aim:To pass document.referrer variable to Php and to write the referrer variable on a text file;

First let us create two file called 1a.html and 2a.html

1a.html will contain a link to 2a.html

and 2a.html will contain just two javascript calls one will call a file called xml1.js

Here is the source of 1a.html

<a href=’http://www.ramanean.com/java/2a.html’>2</a>

Source of 2a.html

<html>
<head>
</head>
<body>
<script src=”xml1.js”></script>
<script type=”text/javascript”>
change1();
</script>

Here First we are calling xml.js javascript and then calling change1() function in it
Source of xml1.js

var xmlHttp
function change1()
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
alert (”Your browser does not support AJAX!”);
return;
}
var shan=document.referrer;
var url=”78.php”;
url=url+”?q=”+shan;
xmlHttp.open(”GET”,url,true);
xmlHttp.send(null);
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject(”Msxml2.XMLHTTP”);
}
catch (e)
{
xmlHttp=new ActiveXObject(”Microsoft.XMLHTTP”);
}
}
return xmlHttp;
}

In the above function function GetXmlHttpObject() is nothing but creating Xmlhttpobject by which get function will be routed (AJAX).Do n’t worry about that if you need to more about there go to http://www.w3schools.com/ajax/ajax_source.asp.

Now let us go to the second line ,Here we are declaring change1 function and then we checking whether browser supports xml if not browser will display an error message indicating that “your Browser does n’t support AJAX”

Now let me explain what these four lines contain

var s =document.referrer; // javascript variable you are going to pass
var url=”78.php”; //Url aof the Php script you are going to pass javascript varaibles
url=url+”?q=”+shan;// adding javascript variables to the url
xmlHttp.open(”GET”,url,true); //callingthe php script
xmlHttp.send(null);//calling the php script

The php file is like this

<?php

$q=$_GET[”q”];//Getting the javascript variable

$file=file_put_contents(’ip1.txt’,$q);//writing the variable to file

?>

by this you can pass variables to a php script and from php you can insert any data into your database;

Apr 27

I have been using Tata indicom Plug to Surf for the last 5 months.At first I was very happy to be connected to internet at any cost as getting an internet connection (Boradband) you need permanent Residence proof etc., and a whole lot of things .As you can’t get a broadband connection living in your temporary residence as they will ask your Permanent residence which is about 450 kms from here.


Cost:

It’s a bit costly .I have choosen 5GB plan for Rs1500 monthly Since I am into work I use only 30% of it.So always choose right plans.And also because of the speed you can’t download too much.

Speed:

They say it’s 230kbps, but it;s actually less than it.I have not tested it’s speed but it’s actually less than 100kbps,But in night you get good speed of between 100-150kbps.And when you are downloading something say a file of size 10MB it may take 20 mintues to complete the download in peak time(8-10pm) but it will take less than 10 minutes when you download the same file in morning(2-7am).This is what Tata indicom plug to surf is all about.

Choose this only ,when you have no other option(Wi-Fi, Broadband) etc. otherwise stay away from it

I hope their service will improve once other competitors are into this field

Apr 23

I just found a new way of calling a php file

You have heard about this

<script type=”text/javascript” src=”java2.js”>
</script>

The good thing is that you can also call a php file using this SRC attribute javascript just replace “java2.js” with “java2.php” like this

<script type=”text/javascript” src=”java2.php”>
</script>

The good thing is you do n’t have to mess with the design of your site with the php code as you can just call by javascript and it can be also used on plain html pages.For example ,I have a free webhosting account for my site www.freewebspace.co.nr ,to know the ip address of the visitors to my site , I will simply call my php file ip1.php which resides on this site.

Something like this

<script type=”text/javascript” src=”http://www.ramanean.com/ip1.php”>
</script>

And the only one disadvantage you have is you can’t find the referer to your site by calling the php file you have to find it by javascript only ,if you intend to find referer toyour plain HTML page.

Apr 23

I just signed up for get paid to blog.Their approval system is very fast and they usually approve the blog within 2-3 business days which is remarkable when compared to others and also they have also reduced the minimum no of posts to 10 and life of the blog should be atleast 30 days inorder to getaccepted into their system which is great for new bloggers who do n’t have to wait so long to earn money via blogs.This would be also good for advertisersas they will get more good quality review posts for them and also good traffic from these
new blogs

To Signup for payper post:

All You need to havevis

a) A blog
b)Paypal account

and the Blog must be alive for 30 days with minimum of 10 posts

That’s it.

After Signing up you need to wait for just 2-3 days to get your blog approved .After that you can take available opportunies for your blog and start reviewing them.Suppose if you need time to review a product/anyother thing you can reserve the available opportunity and then you can submit your post within 6 hours from the time you reserved the opportunity.

Opportunies will be available to you on the basis of factors like Page Rank,Alexa Rank and Payperpost tracking (given by advertisers) So some opportunitiesavailable to you may not be available to others.

Also there are also other ways to monetize your blog even before you get approved into the system

a)Referrals:
The first one is Referrals.You can start referring your friends and visitors to your blog even before your blog gets approved by the payperpost.You will be paid $15.00 each time you when your referral gets his first blog post reviewed and approved.

b)Payperpost Direct:
PPP Direct is a unique feature in payperpost which will allow Advertisers to directly find your blog and negotiate with you on price and scope.It’s a win-win opportunity for both theadvertiser and blogger as advertiser may easily find a suitable blog of his choice to get reviewed and also blogger can earn more withoutwaiting for opportunities in the market place.Also all the PPP direct blogs will be listed in PPP directory as it will be easy for advertisers to find the suitable blogsfor them.

c)Review my post:
Review my post is another feature which will other bloggers to review your post without getting paid by you.You can simply put a badge at the bottom ofevery post and when a blogger clicks on the badge and signs up with payperpos to review your blog ,you get paid $7.50 each time.By this way you can generate 1000’s of backlinks and at the same time you can also earn more as you will be paid $7.50 for each review on your blog

The best thing here is you do n’t even have to wait for your blog approved and you can start earning as soon as you signup.Also they have a very easy interface which will show all the available opportunies to you first ,so you can easily choose any one of them.Also if you are newbie you do n’t know anything about payperpost after signing
up just have a look at here and also if you any problem you can always contact
them through their support (Customer love ) who are always read to help you with clarifications.

Apr 20

Owning a network of proxies I was always meddling around trying to find ways to decrease the bandwidth usage on my sites. Then I came across GeoIP. Simply placing two files(geoip.dat and geoip.inc) in the same folder that contains index.inc.php, and then adding a snippet of code to the top of your main index file(in this case index.inc.php if your a proxy webmaster) file you can limit which countries are able to view your proxies. You can also redirect them to a site of your choice. This can be useful if you are currently smart priced by Google, as only allowing English speaking countries to view your ads will increase the conversion rate, and after a couple weeks you won’t be smart priced anymore. Another option is to start a site that holds other CPC ads on it other than adsense, and redirect all foreign traffic to this site. Below is the code to place at the top of your index.inc.php file:

<?php

// This code demonstrates how to lookup the country by IP Address

include(”geoip.inc”);

// Uncomment if querying against GeoIP/Lite City.
// include(”geoip.inc”);

$gi = geoip_open(”geoip.dat”,GEOIP_STANDARD);

// get the ip of the visitor
$addr = getenv(”REMOTE_ADDR”);
// translate his ip to a country code
$country = geoip_country_name_by_addr($gi, $addr);
// close the geo database
geoip_close($gi);

$okcountry = array(”United States”, “United Kingdom”, “Canada”, “Australia”);

// redirect them if they suck
if(!in_array($country, $okcountry))
header(’Location: http://www.joinlist.info/’)

?>


Source: http://www.samdaves.com/blog/?s=geoip

Apr 20

IPL aka Indian Premier League got of to great start at Chinnaswamy grounds on Friday.The opening match between kolkata Knight riders and Bangalore Challengers was a one sided affair with Knight riders winning the match by a comfortable margin of over 100 runs.
The special about that match was Brendon McCullum ’s Superb 158 which included over 12 sixes and as many as 7 fours.

The next match between Chennai Vs Punjab was somewhat a close contest by Twenty- Twenty standarads.McCullum’s record of century in 53 balls stood only one day as Hussey (Elder one) scored a century of just 50 balls for super kings.Bandrinath and Raina contributed with useful cameos and in the end Chennai reached 240 in 20 overs.Punjab got of to a good start with James Hopes scoring 79 ,but most of others failed to contribute substantially with the bat which resulted Punjab losing the match .

The next one between Rajasthan and Delhi was a one sided affair with Delhi romping home with 9 wickets to spare in 15.2 overs.

Let us see how IPL fares in the coming days..

Apr 18

If you are proxy there will be a lot of unwanted visitors from countries China and Iran(not Iran though). They will be using a lot of bandwidth by downloading movies and other things

There are two ways to stop them

a) Stop hotlinking and limit the size of downloadable file

b)Stop visitors from certain countries

Let us see the second option

To stop visitors from certain countries

Go to www.blockacountry.com then choose the country you want to block and then click on Go button

It will create a .htaccess file and copy and paste in your domain folder

Apr 18

 

Just find this in Php proxy and replace type=”textbox” with type”hidden”

echo ‘<li class=”option”><label>
<input name=”‘ . $GLOBALS[’_config’][’flags_var_name’] . ‘[’ . $flag_name . ‘]” checked=”checked” type=”checkbox” />’ . $GLOBALS[’_labels’][$flag_name][1] . ‘</label></li>’ .”\n”;

Apr 18

I had to add this into all my htaccess files to stop hotlinking. That mod didn’t work at all in the first post. This has stopped it totally.

Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?domain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(jpe?g|gif|bmp|png|avi|mpeg|mp3)$ /images/image.jpg [L]

Replace the domain with your domain name and the .com with your tld

And put whatever image you want for image.jpg.