301 redirect is a permanent redirect whereas 302 is a temporary redirect. Permanent redirects tell search engines that old URL is out so that they can pull this new URL in it’s place. 301 is used when you want to preserve the page index and keep the page rank.
Category Archives: Web Services
Protecting Your WordPress Admin From Hacks
You may use this trick for adding an additional layer of security on your WordPress site so that your site don’t get compromised and hacked:
- Open your cPanel.
- From Security section click Password Protect Directories.
- Now on the Pop Up. Select root then from your WordPress installation select wp-admin.
- Check Password protect this directory.
- Create a user for that directory; there is an option below the check box. That’s it..
Now anytime you visit wp-admin directory you should notice an authentication box asking you for the username and password for authentication.
Sometimes it may show some errors depending on how your server is configured. Don’t worry, just ask me here about the problem(if you face one).
Restricting Image Upload Size and Upload Time Using PHP
How to Limit File Upload Size using PHP ?
For reducing high bandwidth usage network admins can limit file size to be uploaded on server by other users. Following script limits file size a user can upload:
<?php
if ($_FILES[“file”][“size”] < 25000)) // Max File Size: 25KB
{
echo “File size exceeds maximum.”;
}
?>
How to Limit File Upload Time Using PHP ?
Other trick for network admins for reducing high bandwidth usage is to limit file upload time. For this you may edit server’s php.ini file or you can set upload time in your site:
ini_set(‘max_input_time’, 300);
WordPres Spam Words And Moderation
Here are words widely used in spam comments. Adding them to your moderation list protects your site from spam trackback and comments. Just copy-paste this list in your wp-admin/options-discussions.php (if using WordPress)
What is Moderation ? WordPress Comment moderation allows you to prevent comments to appear on your webiste before your approval. It can be useful for addressing Spam Comment.
How Moderation Works ? A new comment goes through many WordPress tests before appearing below your post. If comment fails one of the test conducted by WordPress then it goes to spam list, where you can approve or trash that particular comment. That’s how comment moderation works.
Akismet is a better option available for WordPress users for blocking Spam Comments.
Following is spam word list (released by WordPress) to add in your WordPress wp-admin/options-discussions.php
-online
4u
adipex
advicer
baccarrat
blackjack
bllogspot
booker
byob
car-rental-e-site
car-rentals-e-site
carisoprodol
casino
casinos
chatroom
cialis
coolcoolhu
coolhu
credit-card-debt
credit-report-4u
cwas
cyclen
cyclobenzaprine
dating-e-site
day-trading
debt-consolidation
debt-consolidation-consultant
discreetordering
duty-free
dutyfree
equityloans
fioricet
flowers-leading-site
freenet-shopping
freenet
gambling-
hair-loss
health-insurancedeals-4u
homeequityloans
homefinance
holdem
holdempoker
holdemsoftware
holdemtexasturbowilson
hotel-dealse-site
hotele-site
hotelse-site
incest
insurance-quotesdeals-4u
insurancedeals-4u
jrcreations
levitra
macinstruct
mortgage-4-u
mortgagequotes
online-gambling
onlinegambling-4u
ottawavalleyag
ownsthis
palm-texas-holdem-game
paxil
penis
pharmacy
phentermine
poker-chip
poze
pussy
rental-car-e-site
ringtones
roulette
shemale
shoes
slot-machine
texas-holdem
thorcarlson
top-site
top-e-site
tramadol
trim-spa
ultram
valeofglamorganconservatives
viagra
vioxx
xanax
zolus
Display Popular Posts In Your WordPress Blog’s Sidebar Without Using Any Plugin
You can highlight most popular content of your WordPress site in your sidebar. Copy-Paste the following code in your theme’s sidebar.php file:
<h2>Popular Posts</h2>
<ul>
<?php $result = $wpdb->get_results(“SELECT comment_count,ID,post_title
FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 5″);
foreach ($result as $post) {
setup_postdata($post);
$postid = $post->ID;
$title = $post->post_title;
$commentcount = $post->comment_count;
if ($commentcount != 0) { ?>
<li><a href=”<?php echo get_permalink($postid); ?>” title=”<?php echo
$title ?>”>
<?php echo $title ?></a> {<?php echo $commentcount ?>}</li>
<?php } } ?>
</ul>
It displays most popular posts on your site’s sidebar.
For changing the number of posts to display in your sidebar:
Look-up for this line in the above code block: FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 5″); and Replace 5 with the number of posts you like to display.
Easiest Way for Displaying both Popular and Unpopular Posts in your Sidebar:
Now easiest way to do this (display popular posts) and many other similar things like displaying both popular and unpopular posts, knowing the number of post hits is to use Most and Least Read Posts Widget Plugin.
Download from the link, activate it and start using it by placing its widgets in your sidebar. It gives you two different widgets one shows most read posts and the other shows least read posts and also it counts your post hits both on sidebar and in your dashboard All Posts list.
Hide Post Images Without Removing Thumbnail Image In Category Archive
Given code hides post images but keeps thumbnail image in Category archive and homepage. Add following code block in your theme’s function.php:
function wpi_image_content_filter($content){
if (is_home() || is_front_page() || is_category()){
$content = preg_replace(“/<img[^>]+>/i”, “”, $content);
}return $content;
}
add_filter(‘the_content’,’wpi_image_content_filter’,11);
10 Android Apps That Bloggers Should Have
1. WordPress
WordPress App for Android is available at Google Play Store. Using this App bloggers can maintain their blogs from their Android Device. This App is useful for both self-hosted blogs and blogs hosted on wordpress.com
2. Tumblr
If you maintain a Tumblr micro-blog then you should try this App. Using this app you can post content, read and write messages, schedule post activity, manage multiple Tumblr blogs and view contacts of Tumblr blogs in your address book etc.
3. Google Drive
It helps you to store all kinds of documents, audio, video, images, pdf etc in cloud and also sync all documents across multiple devices connected to your Google account.
Download Google Drive App for Android
4. Blogger
Try this App if you blog on Blogger. Functionality of this app is still very limited as compared to the WordPress App.
5. Writer
Writer is a simple text processor that provides you distraction-free writing environment on your smartphone which is very useful while writing long posts.
6. Disqus
Disqus commenting system for WordPress is getting very popular these days because its integrated community features brings people back and keep them engaged. Using this App you can access all commenting features of you blog from your smartphone.
7. Tape A Talk
Tape A Talk is a voice recorder App. Bloggers use this App for recording interviews etc. This App can upload audio-recording to many online services and blogs.
8. GAnalytics
GAnalytics is mobile version of Google’s famous service ‘Google Analytics’. This App gives a good account of your blog traffic, usage statistics and bounce rates etc.
9. Flipboard
Flipboard allows you to open Facebook, Twitter and Google+ streams. Using this App you can browse your blog’s Facebook Page, social news, comments etc
10. Photo Editor
Using this App you can crop, edit, resize, add effects, texts and drawings to your photos before posting them to your blog.
Copy Favicon Of Any Website
You can copy favicon of any website by using this URL:
http://www.google.com/s2/favicons?domain=www.yourdomain.com
Just replace the bold letters with the domain name.
For Example:
If you want to copy Favicon of www.sangkrit.net then write it like this in address bar and press enter:
You will be directed to a page showing favicon of the above given website.
Save it by Ctrl+S on your keyboard.
Use it wherever you want.
Create Your Own Proxy Website Using WordPress
Governments all over the world are trying to censor Internet. They are seeking ways to limit free speech by blocking content on the web. Here using RePress you will learn to get those websites online again for you and the world without any hassle. Your website will become a proxy for the blocked website, rerouting any traffic from a user, through your website to the blocked site.
Although there are already many proxy websites providing access to blocked content but you may have your own proxy website if you don’t want to submit your details to other website.
For example: When you login to a blocked website from a proxy; your details are submitted there so if you respect your privacy then you may own your own proxy.
Follow these steps:
- Visit your WordPress Dashboard.
- Move to Plugins >> Add New
- Search RePress >> Click Install >> Click Activate.
- Now visit Settings >> RePress
- Add the Domain names you would like to access.
- Your Proxy Server is ready now.
Embed Flickr & Picasa Photostreams In Web Pages As A Flash Slideshow
Use PictoBrowser for embedding your Flickr – Picasa Photos in your website.
What is a PictoBrowser?
PictoBrowser a free web application that displays Flickr and Picasa images on websites and blogs.
How to get a PictoBrowser?
- Visit here
- If this link doesn’t work then visit http://pictobrowser.com/
- Click PictoBuilder at the top left corner of the page.
- Enter your Flickr/Picasa username.
- Choose images.
- Set Tag or Groups.
- It outputs some HTML code
- Copy that HTML code and paste it in your website or blog.
- If you use WordPress then you may paste it inside your posts and pages.
Searching A Specific File Format In Google
On Internet there are millions of files with different formats. Google recognizes them and hence you may search web for a specific file format. Likewise if you want to search certain book in PDF format then you should type the book’s name (in double quotes) followed by filetype and then book’s format in Google’s search box as show in the following given example:
Example: If you want to search book After The Software Wars in PDF format on world wide web:
Type as show below in Google’s search box
“After the Software Wars” filetype:PDF
A Brief Introduction To The Pirate Bay
The Pirate Bay is the world’s most flexible BitTorrent site. It is the 71st most visited website on world wide web, currently having about five million registered users over four million torrents.
Specialty of The Pirate Bay
Expert in making copyrighted and restricted content freely available to public for sharing and downloading.
Features of The Pirate Bay
- The Pirate Bay is a well-know place to share copyrighted, stolen or restricted content
- The Pirate Bay allows you to search for Magnet links which are used to reference resources available for download via peer-to-peer architecture when opened in a BitTorrent client
- The Pirate Bay allows you to download BitTorrent files also called torrents and small files that contain metadata which is necessary to download the data files from other users.
- Here you can download torrents under categories: Audio, Video, Applications, Games and yes you can browse more categories.
- The Pirate Bay allows you to sort content by number, name, number of seeds or leechers, date posted, etc.
- Here you can upload your torrents and can comment on other’s uploaded torrents.
The Pirated Bay Established In 2003
Swedish anti-copyright organization Piratbyrån (The Piracy Bureau) established The Pirate Bay.
The Pirate Bay is a Separate Organisation Since November 2003
The Pirate Bay in November 2003. It is a separate organization since October 2004. Gottfrid Svartholm and Fredrik Neij were the first to run Pirate Bay. Motion Picture accused them for making the copyright content publicly available.
Birthday of The Pirate Bay: 15 September 2003 (currently 8 year old)
Creators: Gottfrid Svartholm Warg, Fredrik Neij and Peter Sunde
Registration: Free but email is required in few cases.
Languages: The Pirate Bay is available in 35 different languages.
Slogan:The galaxy’s most resilient BitTorrent site
Address: www.thepiratebay.se
Facebook Is Working On Want Button
Facebook is testing Want Button similar to Like Button which is used across all pages on Facebook. Developer Tom Waddington said that a Want Button is added to the Facebook Javascript SDK as an XFBML tag <fb:wants>. Facebook has yet not listed this extension publicly. The button is for the objects marked as products on Open Graph.
Developers may use this new feature of Facebook for creating their Want Buttons but authorization of any third party application is necessary to make it work.
Facebook Want Button is a Flop or Not?
Facebook Want Button would be quiet different from Facebook Like Button. Like Button shows individual interest but Want Button would be good for business purpose.
On one hand Facebook Like Button shows the user interest in product. Anyone can show his interest on certain product likewise a person who don’t have money to buy Apple I-Pad doesn’t mean that he don’t like it.
And, On the other hand Facebook Want Button would be showing individual’s interest on getting the product or buying it. Hence it reduces ambiguity for advertisers and target audience become more clear.
How Facebook Want Button Works?
Following is the tag released by Tom Waddington for Facebook Want Button:
<fb:want href=”…”></fb:want>
Reaction of Facebook Regarding Want Button
They responded that they are always testing new Platform features, however they have nothing new to announce.
Top Ten Blocked Websites In China
- Facebook.Com: Famous Social Networking Website launched in Febuary 2004 which is owned and operated by Facebook Inc.
- Google.Com:Google Search Engine is blocked in China. They are using Baidu.Com
- Twitter.Com: Famous microblogging service that enables its users to send and read text-based posts of up to 140 characters called “tweets”
- YouTube.Com: YouTube is a famous video-sharing website all over Internet.
- Blogger.Com: Blogger is a blog-publishing service which allows private or multi-user blogs with time-stamped entries.
- Technorati.Com: Technorati is a search engine for searching blogs on Internet.
- Dailymotion.Com: Dailymotion is a French video-sharing website, second largest after YouTube on which users can upload, share and view videos.
- Dropbox.Com: Dropbox is a file hosting service operated by Dropbox, Inc. that offers cloud storage, file synchronization, and client software.
- Plurk.Com: Plurk is a free social networking and micro-blogging service that allows users to send updates known as plurks through short messages or links, which can be up to 140 text characters in length.
- HelloTxt.Com: It allows to post text and media to separate accounts on multiple social networks, publishing platforms, and micro-communication services.
Other Top Blocked Websites In China:
- MySpace.com
- Meebo.com
- Friendster.com
- Orkut.com
- Espn.com
- Ebay.com
- Picasaweb.google.com
How To Access Blocked Websites In China?
Proxy.Org provides many lists of online proxy websites. The proxy list is reordered randomly every 10 minutes to allow each proxy get some exposure near the top. Click Here And Check Workable Web Proxies.
Measure Performance, Position and Worth Of Any Website
Optimizing Your WebSite Performance
Gomez Instant Test
Conducts instant test for individual webpages. It tests page performance from the external node location displaying object level details for:
- DNS Lookup Time
- Connection Time
- Interval Time (Request to sever and data received).
- Content Download Time
- Redirect Time
- Analyzes Each Object of Your Page
Page Speed from Google
Page speed tools from Google analyze and optimize the page speed of your website. You may optimize your website’s performance by using it.
GT metrix
Another popular site for measuring website performance:
- Go to GT Metrix
- Type the site address you like to analyze performance of.
- Press GO
This will show you the Page Speed Grade and YSlow grade with Page Load Time, total Page Size, Total Number of Requests and also History, Timeline.
If you like to run performance test automatically at different intervals of time then setting up an account at GTmetrix is a good option.
Vertain
- Click to Vertain.com
- Type your webpage address.
- Click Test Speed or press Enter.
- Wait for few seconds and see what happens.
Web Ranking
- Go to Alexa.Com.
- Type the website address.
- Press Enter.
- Your Traffic Rank is visible now.
- Click Get Details for more information.
- Your Global Site Rank
- Your Site Rank in Your Country
- Reputation i.e. sites linking to your site.
- Reviews
- Audience
- Related Links
- Search Analytics
- Reach- Estimated percentage of global internet users
- Page Views- Estimated percentage of global pageviews
- Page View/User- Estimated daily unique pageviews per user
- Bounce- Estimated percentage of visits to single page.
- Time on Site- Estimated daily time on site
- Search- Estimated visits from search engines.
Web Worth
- Your website’s earning per day
- Your website’s earning per month
- Estimated worth of your website
Including information on:
- Daily Visits on Website.
- Daily Pageviews on Website.
- Daily Revenue of Website.
- Monthly Visits on Website.
- Monthly Pageviews on Website.
- Monthly Revenue of Website.
- Yearly Visits on Website.
- Yearly Pageviews on Website.
- Annual Earnings of Website.