Category Archives: Open Source
Run your web apps on Google’s infrastructure.
Easy to build, easy to maintain, easy to scale.
1) Register a free account here https://appengine.google.com/.
2) Create an Application here https://appengine.google.com/start/createapp.
3) Download Google App Engine SDK for Java from here http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Java.
4) Unzip appengine-java-sdk-1.4.2.zip in your favorite drive like “D:\appengine-java-sdk”
5) Now download apps svnmedia.zip “D:\appengine-java-sdk\demos” and unzip here “D:\appengine-java-sdk\demos”
6) Edit application XML file “D:\appengine-java-sdk\demos\svnmedia\war\WEB-INF\appengine-web.xml” to the name of the application like “svnmedia”.
7) Run below commands to upload your application, make sure JDK in system classpath variables 🙂
D:\appengine-java-sdk\bin> cd D:\appengine-java-sdk\bin
D:\appengine-java-sdk\bin> appcfg.cmd update D:\appengine-java-sdk\demos\svnmedia\war
8) Finally you can check your application here http://svnmedia.appspot.com/
Please check features for Google App Engine: http://code.google.com/p/googleappengine/issues/list
Google Custom Search service provide customized search for web on your site or blog.
We can filter Google Custom Search results on filetype like PDF 🙂
// create a tabbed mode search control var tabbed = new GSearchControl(); tabbed.setResultSetSize(GSearch.LARGE_RESULTSET); // add an additional term to the query // in this case filetype:pdf var searcher = new GwebSearch(); //searcher.setResultSetSize(GSearch.LARGE_RESULTSET); searcher.setUserDefinedLabel("svnlabs (pdf)"); searcher.setQueryAddition("filetype:pdf"); //searcher.setResultSetSize(GSearch.LARGE_RESULTSET); var searcherOptions = new GsearcherOptions(); searcherOptions.setExpandMode(GSearchControl.EXPAND_MODE_OPEN); tabbed.addSearcher(searcher, searcherOptions); // draw in tabbed layout mode var drawOptions = new GdrawOptions(); drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED); tabbed.draw(document.getElementById("search_control_tabbed"), drawOptions); // PHP keyword in search box tabbed.execute("PHP");
Every day do one thing that you think you cannot do. Soon you will realize that there is nothing that you can not do…
Malware, short for malicious software, is a software designed to secretly access a computer system without the owner’s informed consent. The expression is a general term used by computer professionals to mean a variety of forms of hostile, intrusive, or annoying software or program code.
You have seen above warning many times when you want to browse website using web browsers. This is the warning from search engine bots like Google for website is affected from malwares or viruses. If you still want to access website, it can affect your system or system resources.
Most of times websites are hacked or unauthorized accessed from hackers or cross-site scripting (XSS) or cross-site request forgeries (CSRF).
There may be lot of “holes” in website security that invite hackers to play their game.
The possible HOLES may be:
1. File/Folder permissions
2. Poor authentication for application
3. Cross-Site Scripting
4. Cross-Site Request Forgeries
5. Anti-Virus Software
6. File formats
7. Network “Firewalls/Filters”
8. Shell access & Logs
Please check some link to make web application secure and safe 😉
You can review online Virus & Threat Scanner for cleaning malwares & viruses. These softwares are designed to run on your web server and scan your public web files for malicious code.
Google Safe Browsing Tool
Norton Safe Web
You can search for more tools like…
“Security Pro | SiteMonitor | IP trap | htaccess | AntiXSS | Check Permissions | KISS FileSafe”
If you are running PHP website under Apache & MySQL, make sure file and folder should not be access public. You have to check PHP function’s security for more secure access.
PHP Functions may be used in hacking:
13. move_uploaded_file() and copy()
The above functions can be used by hackers to write malicious code to your files. The malicious code executed using eval() that will execute every run of website. So, disable eval(), file_put_contents(), file_get_contents(), exec() etc. You can check safe_mode in php.ini for disabling shell access 😉
Most of the time websites are hacked using file_get_contents(), eval(base64_decode()), urldecode(), include() or iframes.
You can search infected file on web server “/var/www/” using below command:
# grep -iR ‘eval(base64_decode(‘ /web-root
# grep -iR ‘ # grep -iR ‘urldecode(‘ /web-root
# grep -iR ‘file_get_contents(‘ /web-root
# grep -iR ‘exec(‘ /web-root
As soon as infection found, you have to backup all application running on web server, now you have to remove infected files manually or using scanner.
Now all up to you how you can manage your web server more securely…
I’ve found that luck is quite predictable. If you want more luck, take more chances. Be more active. Show up more often. 😀