Tuesday, September 28, 2010

Test PHP script to block IP address

According to Blog Technics: Script To Block IP Addresses on Blogspot, all one need to do is to upload a PHP script to a file host which allows PHP files, then add another script to just before </head> in the template (or add them to a HTML/Javascript gadget).

This was exactly what was done to Medical Information as a test to ban myself (IP Address 110.159.247.42) from that blog.

Let's go through what was done for the test. The following script:

<?php
/*
Blogspot IP address blocker. Provided by www.blogtechnics.info
*/
$iplist = array("IP Address 1","IP Address 2","IP Address 3"); // the list of banned IPs

$ip = getenv("REMOTE_ADDR"); // get the visitors IP address
// echo "$ip";
$found = false;
foreach ($iplist as $value) { // scan the list
if (strpos($ip, $value) === 0){
$found = true;
}
}

if ($found == true) {
echo "top.location = \"error.html\";\n"; // page to divert to
}

?>


was replaced with

<?php
/*
Blogspot IP address blocker. Provided by www.blogtechnics.info
*/
$iplist = array("110.159.247.42"); // the list of banned IPs

$ip = getenv("REMOTE_ADDR"); // get the visitors IP address
// echo "$ip";
$found = false;
foreach ($iplist as $value) { // scan the list
if (strpos($ip, $value) === 0){
$found = true;
}
}

if ($found == true) {
echo "top.location = \"error.html\";\n"; // page to divert to
}

?>


The above in a Notepad file (ASCII) was saved with a .php extension and uploaded to www.110mb.com/. The URL of the uploaded file is

http://bloggerfordummies.110mb.com/BlogspotIPblocker.php

Accordingly I am supposed to substitute BlogspotIPblocker.php in the code below:

<SCRIPT LANGUAGE='javascript' SRC='BlogspotIPblocker.php' TYPE='text/javascript'>
</SCRIPT>


with that URL whereupon the above become:

<SCRIPT LANGUAGE='javascript' SRC='http://bloggerfordummies.110mb.com/BlogspotIPblocker.php' TYPE='text/javascript'>
</SCRIPT>


and was copy-pasted to just before </head> in the template. The portion in the template just before </head> in the template thus become

<SCRIPT LANGUAGE='javascript' SRC='http://bloggerfordummies.110mb.com/BlogspotIPblocker.php' TYPE='text/javascript'>
</SCRIPT>
</head>

Monday, September 27, 2010

Test centering large image



Sunday, September 26, 2010

Test centering tabs for blogger


















Codes for the above:

<center><div id="newnavbar"> <ul>


<center><li><a href="http://thedirtroaddiva.blogspot.com"><img src="http://lh3.ggpht.com/_nhljcQCSg9s/TJFRlBlR38I/AAAAAAAAXFI/v_d2beci3lE/s800/homesmall.jpg" /></a></li></center>

<center><li><a href="http://thedirtroaddiva.blogspot.com/p/about-me.html"><img src="http://lh4.ggpht.com/_nhljcQCSg9s/TJFRjH5qC7I/AAAAAAAAXFA/cQVYdGcvrsk/s800/absmall.jpg" /></a></li></center>


<center><li><a href="http://thedirtroaddiva.blogspot.com/p/shop.html"><img src="http://lh6.ggpht.com/_nhljcQCSg9s/TJFRmaYPTlI/AAAAAAAAXFY/GVHKTN8ForE/s800/shopsmal.jpg" /></a></li></center>

<center><li><a href="http://thedirtroaddiva.blogspot.com/p/tutorials.html"><img src="http://lh5.ggpht.com/_nhljcQCSg9s/TJFRjK3vL2I/AAAAAAAAXE8/ds_fd2mxowE/s800/butsmal.jpg" /></a></li></center>


<center><li><a href="http://thedirtroaddiva.blogspot.com/p/parties.html"><img src="http://lh4.ggpht.com/_nhljcQCSg9s/TJFRlu2wAuI/AAAAAAAAXFQ/As2IgZ_YE3s/s800/partbut.jpg" /></a></li></center>

</ul></div></center>

Monday, September 20, 2010

Test making images uploaded via Blogger unclickable

The images below are for verifying that the method to make images uploaded via Blogger not clickable and you may try clicking the displayed images that the top 2 when clicked will lead to an enlarged image while the last 2 are not clickable thus verifying the method described works:



===============================



Thursday, September 16, 2010

Test hyperlink to spot in same page

click here to go there

Here is some text:
AdSense Facts & Fiction Part IV: Program policies
Tuesday, July 06, 2010 | 12:10:00 PM
Labels: Facts and Fiction, Program Policies
Fiction: AdSense disables accounts and issues warnings at random.

Fact: We rely upon a detailed set of guidelines when looking at policy violations, and these policies are published in our Help Center. Our intent is to keep Google's content and search networks safe and clean for our advertisers, users and publishers. We seek to be as transparent and consistent with our decision making.

Part of our job of monitoring the AdSense network involves working with publishers to identify and address potential issues. We understand that there are a lot of policies to take into account, and so for minor policy violations our first step will be to issue a warning. The reasons a publisher might receive a warning will vary, but in general they tend to be for violations that can be fixed fairly easily. Examples of these violations range from deceptively labeling ads “Today’s hot deals” to having a minimal amount of adult-content comment spam in a forum. Publishers, after receiving a warning, are given three days to fix their violations. If changes are not made in that time, ad serving will be disabled to the violating site.

There are some situations when we would need to disable ad serving to a site without first sending a warning. We usually reserve this action for egregious violations like adult content, copyright infringement, as well as cases of extreme violence and gore. We may also disable ads to a site when we find a violation that we’ve already contacted a publisher about in the past.

The final and most severe action that our teams can take is to close down an account completely. This normally only happens when we find that a publisher’s entire network consists of violating sites or for repeat policy offenders. If you have received a policy notification from the AdSense team, please visit this help center entry for additional information.

We want to point out that notifications that result from the previously mentioned policy violations are different from notifications sent because of issues with invalid click activity, which are monitored by Google's Ad Traffic Quality Team. Invalid click activity consists of any clicks or impressions that may artificially inflate an advertiser's costs or a publisher's earnings, and for which we decide not to charge the advertiser. For more information about invalid clicks and impressions, please refer to this page, which includes a link to our FAQ page for accounts disabled due to invalid activity.

Lastly, we highly recommend reviewing these guidelines to help avoid policy violations, and to help keep your AdSense account in good standing.

Posted by Andres Schabelman - AdSense Policy team

You should land here if id works

Here are somemore text:

Updates to the program policies page
Tuesday, April 28, 2009 | 11:25:00 AM
Labels: Program Policies
If you've checked the AdSense program policies page today, you've probably noticed that we've just made a few small updates. We'd like to take a moment to clarify what's been changed.

The first thing you might notice when you visit the program policies page is that we've revamped the look. Based on your feedback, we've reorganized the content and updated the layout to make it easier to read and navigate. We've highlighted some key information for each policy, and added expandable 'Learn more' sections that you can click for more detailed information. Also, we've grouped together policies that are specific to only AdSense for content or AdSense for search.

There are also a few updates to the content of the program policies, which we've outlined below:
Google brand violations: This policy has always existed in our Terms and Conditions, but we've now brought it directly to the 'Ad Placement' section of the program policies page so that it's easier to find. According to this policy, we don't allow ads or search boxes to be placed on pages which misuse Google logos, trademarks, or other brand features in the page content or URL, and which could mislead users into thinking the page is associated with Google.

Deceptive implementations: We've clarified this policy a bit in the 'Encouraging Clicks' section of the program policies - ads may not be formatted in a way that makes them indistinguishable from other content on the page where they appear. This includes, for instance, formatting content to mimic ads, aligning images with ads, and placing ads under a misleading heading.

Ad placement in emails and email programs: This updated policy clarifies that Google ads , search boxes, and search results may not be placed in emails, as well as alongside emails.

Other Google products' policies: With this new policy, publishers aren't permitted to place ads, search boxes, or search results on, within, or alongside other Google products in a way that violates the policies of that other product or service. For instance, this would include placing ads on sites which allow users to download YouTube videos, which isn't permitted by the YouTube Terms of Service.
Finally, we've added more information to the 'Webmaster Guidelines' section and created a new 'Traffic Sources' section. Whether you regularly review the program policies or haven't reviewed them since you signed up for AdSense, we encourage you to visit the program policies page and check out the updates.

(Post has been updated to provide additional clarification.)

Posted by Winnie Creason - AdSense Publisher Support

Land here if id attribute don't work

Saturday, September 04, 2010

Test Paypal shopping cart HTML code

Testing this Paypal code:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="G6ZUFHJ9ESHQJ">
<input type="image" src="https://www.paypal.com/en_AU/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>

and below you should see the Paypal Shopping Cart button: