Entries Tagged as 'Miscellaneous'

Task Scheduler was not working Social Engine video upload module - Solved

Posted by Vikas on October 21, 2011
  1 comments

Hi,

Recently I started reviewing SocialEngine (Short desc: create your own social networking site), and I face some issue with video uploading process.

I am using SocialEngine 4.1.7.

By default, user can only embed Video from YouTube and Vemio. But if you want to upload the Video file, you need to allow it by enabling settings from the Administrative area.




How to prevent the web pages from being index by the Search Engine

Posted by Nirav Patel on January 22, 2011
  0 comments

If you want to hide a page or website from search engines, you can do it in several ways. Since all search engines follow a web robots standard while crawling websites called Robots Exclusion Protocol, you can use the robots.txt file to give instructions to a search engine on what to index and what not to index.

First, create a text file called robots.txt on the root of your website. Now let’s say you want to block your entire website from being indexed by the search engines, so you would add these lines to your text file:

User-agent: *
Disallow: /

You can also block directories or individual pages on your site using a robots.txt file instead of blocking the entire website. To block a directory, you could add the following lines:

Disallow: /cgi-bin/
Disallow: /tmp/

 

You can also block access to your website or webpage using META tags. To prevent all robots from indexing a page on your site, add this line to the HEAD section:

<meta name="robots" content="noindex">

More about /robots.txt
More about the Robots <META> tag




Random Salt Password Encryption

Posted by Rahul on April 17, 2010
  0 comments

Random Salt Password Encryption Technique

/* Client Side */
function encryptPassword(){
    var salt = #session.salt#;
    var passField = document.getElementById('txtPassword');
    //  Submit this password value while submitting form.
    return md5(md5(passField.value) + salt);    
}

/* Server Side */
<cfscript>
    /* Get the user password from the database (already stored in md5 format) */
    userPassword = queryUser.password;
    local.salt = Session.salt;
    // Check Salted Database Password With Submitted Password from the form
    if( toBase64(userPassword&local.salt) eq form.userPassword )
    {
        //Authenticated.        
    }
    else
    {
        // Invalid user
    }    
</cfscript>

* Password In the database needs to be stored in md5(base64 encoding) format.
* md5() javascript functions are readily available on the internet.
* Any technique can be used for generation of Salt value.




Use Firebug in Any Browser

Posted by Akash Bavlecha on April 09, 2010
  0 comments

By including below script on your site or page will get you a firebug console that will pop up for debugging in any browser you are using or handy with. It will be helpful for debugging in IE for me. Please remove this js from your page or site once you have completed your work.

<script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>