Webmaster Blog

Webmaster Resources

⇒Category: Home » General » RSS

Using special characters in a file link

Today some people were uploading stuff with foot signs in the file name to one of my blogs. Obviously the links were all broken. I know the basic syntax for example for spaces (%2B), because you see it all the time, but I had to lookup the others in a book.

This small table can help us to fix URL’s …

Sponsored blog posts requirements

Well I recently signed up for some PPP programs, which stands for “Pay Per Post”.
Webmasters can earn money for their opinion and increase their blog earnings.
But there are some requirements if you want to participate in one of those programs.

PayPerPost.com
1) Blogs must contain a monthly chronological archive of posts.
2) Posts may not be truncated. (I suppose that means “Read more” is not allowed, which is pretty stupid!)

PayPerPost does not accept blogs from advertising community blog sites or AdSense monetized blogs such as, Blogger Party, WritingUp, BlogCharm, Blogitive, Blog4Cash, Senserely, etc.

SocialSpark.com
1) Blog Posts must have a clearly visible time stamp.
2) Blog must have 20 posts within the last 90 days.
3) “Read more” is allowed on frontpage.

Obviously there are some more requirements.

Another great PPP program is www.sponsoredreviews.com:

SponsoredReviews.com rejection might be due to the following reasons:

1. Blog is too new and has poor stats, including little traffic and/or links.
2. Blog has too much paid content and does not meet our 2:1 ratio rule.
3. Blog was over-priced based on its stats and our suggested price.
4. Blog is written in a foreign language and does not follow guidelines on how to properly submit.

Wordpress: Improve security, change default admin username

Obviously one big security flaw of Wordpress is that the admin username is by default “admin”. This is a security risk, because hackers will only need your password and already have your username, that’s a clear advantage! People without experience don’t know that they can change this via PHPMyAdmin and therefore don’t change it.

To improve your blog security install the following plugin.

This way you can change your admin username. Once that is done relogin and your wordpress blog should be a little bit more secure!

Remove symbolic link to folder

If you created a symbolic link to a folder via “ln -s /source/ /target/” you have to be careful.
Should you accidently remove the symbolic link in your FTP application the real folder will be deleted as well. To avoid that simply use the command “rm -r /symboliclinkfolder” .

Adtoll Peel Adverts: Hide if Flash is not installed

Well I wanted to try out Adtoll Peel Ads, that are those corner ads that are pretty neat.
As soon as I implemented it I noticed that it was asking me to install the Flash Player, this might be pretty annoying if you don’t want your visitors to install flash just for an advert.

 

Here is the solution, you can simply add before the tag.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
<SCRIPT LANGUAGE="JavaScript">
<!-- use this comment tag to hide the enclosed code from old browsers.
 
if ((navigator.appName == "Microsoft Internet Explorer" &&
    navigator.appVersion.indexOf("Mac") == -1 
     &&   navigator.appVersion.indexOf("3.1") == -1) ||
 
    (navigator.plugins && navigator.plugins["Shockwave Flash"])
                       || navigator.plugins["Shockwave Flash 2.0"]){
 
</SCRIPT>
 
 
<!-- START ADTOLL.COM CODE V1.0 -->
<SCRIPT src="XXXXX YOUR ADTOLL URL XXXXX" type="text/javascript"></SCRIPT>
<!-- END ADTOLL.COM CODE V1.0 -->
 
 
<SCRIPT LANGUAGE="JavaScript">	
}
// Close the comment tag. -->
</SCRIPT>

Managing Cronjobs via Crontab

To manage your cronjobs it is good to know that you can easily manage them via crontab instead of adding them cron.d

crontab -l will show you your currently set up cron jobs on the server.
crontab -r will delete your current cron jobs.
crontab -e will allow you to add or edit your current cron jobs by using your default text editor to edit your “crontab file”.

Source: http://drupal.org/node/31548

To execute some commands just create a file with the extension .ssh, add #!/bin/sh at the first line, chmod it to 711 and add this cron to your crontab using the command above.

Page 1 of 512345»