Thursday, March 11, 2010
Sunday, February 7, 2010
How to attract people to your website
1. Give people a free subscription to your e-zine. Almost everyone is publishing a e-zine nowadays so it's important to give something extra with the free subscription. You could offer a free gift or advertising when people subscribe.
2. Provide your visitors with free content. Your content will be more attractive to your visitors if it's up-to-date or original. You could also offer people the option to reprint the content in their e-zine or web site.
3. Offer a free online directory. The directory could be full of interesting ebooks, e-zines, web sites etc. If people find your directory to be a valuable resource they will visit it over and over.
4. Give your visitors a free ebook. You could also include your own ad in the ebook and allow other people to give it away. If you don't want to take the time to write one, you could ask other writers permission to use their articles.
5. Hold free online classes or seminars. They could be held in your web site's chat room. The idea of "live" information will definitely entice people to visit your web site. You will become known as an expert on the topic.
6. Give visitors a free entry into your contest or sweepstakes. The prizes should be something of interest or value to your visitors. Most people who enter will continually revisit your web site to get the results.
7. Let visitors download free software. It could be freeware, shareware, demos etc. You could even turn part of your site into a free software directory. If you created the software, include your ad inside and let other people give it away.
8. Offer free online services or utilities from your web site. They could be search engine submitting,copy writing proofreading etc. The service or utility should be helpful to your target audience.
9. Give free consulting to people who visit your web site. You could offer your knowledge via e-mail or by telephone. People will consider this a huge value because consulting fees can be very expensive.
10. Give your visitors a free membership to your online club. People want to belong to something, why not your online club. You could also give away a free e-zine for club members onlySunday, December 13, 2009
JavaScript code to have fun with a website
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);
The easiest way is to write a htaccess file, include the following line in your .htaccess file to deny access to all the directory listings, if there is no index file.
PHP Code:
Options -Indexes
PHP code to check whether a yahoo user is online or not
$url = 'http://opi.yahoo.com/online?u=';
$data = file_get_contents($url . $id);
if (trim(strtolower(strip_tags($data))) != 'user not specified.') {
echo (strlen($data) == 140) ? 'online' : 'offline'; }
else {
echo trim(strip_tags($data));
} ?>
Friday, October 9, 2009
Why is Flex so awesome ?
great rich internet application.
2) secondly it's awesome because of the platform in-dependency, I can code
with out having to worry about the browsers and operating.Javascript
developer don't have that privilege.
3) For back-end I have wide range of choice php,java ..c# etc.
4) We have wide range of resource over internet in case of any problem.
5) Most important thing is flash player is readily available almost in
any machines around the world.
I am really fascinated by Flex!!!.
Tuesday, September 15, 2009
JavaScript Injection
javascript:alert(document.cookie);
This command will popup a box which lists your current cookies. A malicious user could use javascript to change values in the cookie. For example lets say a web application you are testing sets an authorization cookie to true when a user has successfully logged in and passed the authorization test. To change the values within the cookie, a malicious user would execute javascript like the following from the url bar within the browser.
javascript:void(document.cookie="authorization=true");
This would cause the current cookie parameter authorization=false to be changed to authorization=true. Which the malicious user might not have passed the original authorization test. The malicious user has just bypassed the authorization test and gained access to the sensitive content. As you could imagine, this could cause severe problems in privilege escalation, if the malicious user could use JavaScript injection to bypass the correct authorization process.
If you are testing for JavaScript injection and wish to see if the cookie has been altered you would execute a command similar to the following, except you would want to replace the cookie name and value with the cookie you desire to test. Start with the javascript command to alter the cookie and then tack on the javascript alert function to view what the cookie was changed to. For example
javascript:void(document.cookie="authorization=true");javascript:alert(document.cookie);
You should now be able to see the new cookie parameter in the popup box.