Posted by: M A Hossain Tonu on: September 25, 2009
Intro…
Now days the WebPages are outcome of heavy script processing in order to provide more dynamicity to page visitors. The utility of server side scripting is to adopt more engineering on web. When the page gets more visitors or becomes more popular, you have to ensure that, that traffic doesn’t stack or queued in front of your freaky web server. All you have to do is to serve them with your page and ofcourse serve it faster. Again server side scripting requires processing and compiling.
In order to serve pages faster, to make light use of server side processing and compiling and to survive within heavy traffic, caching dynamic script output is needed.
The Need For Speed…
Every time a request hits your web server, PHP has to do a lot of processing, all of your codes have to be compiled and executed for a single traffic hit every time. Interesting thing will be if the outcomes of all these processing is identical for each visitors. Say, processing happens every time for visitor 24500 and 24501 while the outputs are so same. Argh!!
What would be if we save the flat HTML generated for visitor 24500 and serve that to 24501 as well??? That will be awesome
coz this leads to less processing and faster page handover. This da mechanism we are talking about, yeah! Cache PHP output
Well we can write such optimization system but there is a smart package in PEAR called Cache_Lite that can do this job for us. Let’s check out why Cache_Lite:
Installation…
The Cache_Lite class comes courtesy of PEAR, the “PHP Extension and Application Repository” (http://pear.php.net). In case you didn’t know, PEAR is an online repository of free PHP software, including classes and modules for everything from data archiving to XML parsing. When you install PHP, a whole bunch of PEAR modules get installed as well; the Cache_Lite class is one of them.
In case not installed then…
It is just like coding hello world!!
On ubuntu:
sudo aptitude -y update sudo aptitude install php-pear
Now that we have PEAR, i would use it to install the Cache_Lite extension
sudo pear install Cache_Lite
Perfect!
Checking whether installed/ checking PEAR verson:
Both pear and pecl tools should be available everywhere on command line. For that to work, pear’s binary (bin) directory should be in your PATH variable.
To verify it works, simply type pear. A list of commands should be shown:
$ pear Commands: build Build an Extension From C Source bundle Unpacks a Pecl Package channel-add Add a Channel ...
You should further test that PEAR is up to date:
$ pear version PEAR Version: 1.7.2 PHP Version: 5.2.6RC4-pl0-gentoo Zend Engine Version: 2.2.0 Running on: Linux ...
More installation queries here: http://pear.php.net/manual/en/installation.checking.php
Implementation…
<?php
// Include the package
require_once('Cache/Lite.php'); // make sure cache_lite script path
// Set a id for this cache
$id = '123';
// Set a few options
$options = array(
'cacheDir' => '/tmp/',
'lifeTime' => 3600
);
// Create a Cache_Lite object
$Cache_Lite = new Cache_Lite($options);
// Test if thereis a valide cache for this id
if ($data = $Cache_Lite->get($id)) {
// Cache hit !
// Content is in $data
// (...)
} else { // No valid cache found (you have to make the page)
// Cache miss !
// Put in $data datas to put in cache
// (...)
$Cache_Lite->save($data);
}
?>
More clearly…
<?php
require_once "Cache/Lite.php";
$options = array(
'cacheDir' => '/tmp/',
'lifeTime' => 7200,
'pearErrorMode' => CACHE_LITE_ERROR_DIE
);
$cache = new Cache_Lite($options);
if ($data = $cache->get('id_of_the_page')) {
// Cache hit !
// Content is in $data
echo $data;
} else {
// No valid cache found (you have to make and save the page)
$data = '<html><head><title>test</title></head><body><p>this is a test</p></body></html>';
echo $data;
$cache->save($data);
}
?>
If you wish use a cache per block and not a global cache, take as example the following script:
<?php
require_once('Cache/Lite.php');
$options = array(
'cacheDir' => '/tmp/',
'lifeTime' => 3600
);
// Create a Cache_Lite object
$Cache_Lite = new Cache_Lite($options);
if ($data = $Cache_Lite->get('block1')) {
echo($data);
} else {
$data = 'Data of the block 1';
$Cache_Lite->save($data);
}
echo('<br><br>Non cached line !<br><br>');
if ($data = $Cache_Lite->get('block2')) {
echo($data);
} else {
$data = 'Data of the block 2';
$Cache_Lite->save($data);
}
?>
Little bit implementation:
The key point is Cache_Lite maintains a unique identifier for every page. Cache_Lite will check for that identifier used before. If so, it will retrieve the stored HTML from disk (can use RAM as turbo charged storage i.e. mount tmpfs in RAM memory) and echo it right away. If not, we:
Example:
<?php
/* Include the class */
require_once 'Cache/Lite.php';
/* Set a key for this cache item */
$id = 'newsitem1';
/* Set a few options */
$options = array(
'cacheDir' => '/var/www/www.mywebsite.com/cache/',
'lifeTime' => 3600
);
/* Create a Cache_Lite object */
$Cache_Lite = new Cache_Lite($options);
/* Test if there is a valid cache-entry for this key */
if ($data = $Cache_Lite->get($id)) {
/* Cache hit! We've got the cached content stored in $data! */
} else {
/* Cache miss! Use ob_start to catch all the output that comes next*/
ob_start();
/* The original content, which is now saved in the output buffer */
include "requiredPhpFile.php";
/* We've got fresh content stored in $data! */
$data = ob_get_contents();
/* Let's store our fresh content, so next
* time we won't have to generate it! */
$Cache_Lite->save($data, $id);
ob_get_clean();
}
echo $data;
?>
A Special case…
Say a case, is to automatically purge an article’s cache when a comment has been placed. You could for example place this before Cache_Lite checks if it’s got a cache page for a specific $id:
<?php
if(isset($_POST["add_comment"]) && $_POST["add_comment"]){
$Cache_Lite->remove($id);
}
?>
Docs for Cahe_Lite here:
http://pear.php.net/manual/en/package.caching.cache-lite.php
Posted by: M A Hossain Tonu on: April 2, 2009
Some days ago one of my junior who is a newbie programmer asked me for an interesting thing when I went their dorm. He said that he want to learn SQL Injection. Unfortunately or fortunately SQL injection is not for learning but we need to learn how to prevent SQL Injection as it is a PHP security topic.
“SQL Injection” is subset of the “an unverified/unsanitized” user input vulnerability, and the idea is to convince the application to run SQL code that was not intended. If the application is creating SQL strings naively on the fly and then running them, it’s straightforward to create some real surprises.
There have been other papers on SQL injection, including some that are much more detailed, but this one shows the rationale of discovery as much as the process of exploitation.
Case Study:
The login page had a traditional username-and-password form, but also an email-me-mypassword link; the latter proved to be the downfall of the whole system.
When entering an email address, the system presumably looked in the user database for that email address, and mailed something to that address. Since my email address is not found, it wasn’t going to send me anything.
So the first test in any SQL-ish form is to enter a single quote as part of the data: the intention is to see if they construct an SQL string literally without sanitizing. When submitting the form with a quote in the email address, we get a 500 error (server failure), and this suggests that the “broken” input is actually being parsed literally. Bingo.
We speculate that the underlying SQL code looks something like this:
SELECT fieldlist
FROM table
WHERE field = ‘ $EMAIL ‘;
Here, $EMAIL is the address submitted on the form by the user, and the larger query provides the quotation marks that set it off as a literal string. We don’t know the specific names of the fields or table involved, but we do know their nature, and we’ll make some good guesses later.
When we enter bob@example.com’ – note the closing quote mark – this yields constructed SQL:
SELECT fieldlist
FROM table
WHERE field = ‘ bob@example.com’ ‘;
When this is executed, the SQL parser find the extra quote mark and aborts with a syntax error. How this manifests itself to the user depends on the application’s internal error-recovery procedures, but it’s usually different from “email address is unknown”. This error response is a dead giveaway that user input is not being sanitized properly and that the application is ripe for exploitation.
Since the data we’re filling in appears to be in the WHERE clause, let’s change the nature of that clause in an SQL legal way and see what happens. By entering anything’ OR ‘x’='x , the resulting SQL is:
SELECT fieldlist
FROM table
WHERE field = ‘ anything’ OR ‘x’='x ‘;
Because the application is not really thinking about the query – merely constructing a string – our use of quotes has turned a single-component WHERE clause into a two-component one, and the ‘x’='x’ clause is guaranteed to be true no matter what the first clause is (there is a better approach for this “always true” part that we’ll touch on later).
But unlike the “real” query, which should return only a single item each time, this version will essentially return every item in the members database. The only way to find out what the application will do in this circumstance is to try it. Doing so, we were greeted with:
———————————————————–
Your login information has been mailed to random.person@example.com.
————————————————————
Our best guess is that it’s the first record returned by the query, effectively an entry taken at random. This person really did get this forgotten-password link via email, which will probably come as surprise to him and may raise warning flags somewhere.
We now know that we’re able to manipulate the query to our own ends, though we still don’t know much about the parts of it we cannot see. But we have observed three different responses to our various inputs:
The first two are responses to well-formed SQL, while the latter is for bad SQL: this distinction will be very useful when trying to guess the structure of the query.
Brute-force password guessing
One can certainly attempt brute-force guessing of passwords at the main login page, but many systems make an effort to detect or even prevent this. There could be logfiles, account lockouts, or other devices that would substantially impede our efforts, but because of the nonsanitized inputs, we have another avenue that is much less likely to be so protected.
We’ll instead do actual password testing in our snippet by including the email name and password directly. In our example, we’ll use our victim, bob@example.com and try multiple passwords.
SELECT email, passwd, login_id, full_name
FROM members
WHERE email = ‘ bob@example.com’ AND passwd = ‘hello123 ‘;
This is clearly well-formed SQL, so we don’t expect to see any server errors, and we’ll know we found the password when we receive the “your password has been mailed to you” message. Our mark has now been tipped off, but we do have his password.
This procedure can be automated with scripting in perl, and though we were in the process of creating this script, we ended up going down another road before actually trying it.
The database isn’t readonly
So far, we have done nothing but query the database, and even though a SELECT is readonly, that doesn’t mean that SQL is. SQL uses the semicolon for statement termination, and if the input is not sanitized properly, there may be nothing that prevents us from stringing our own unrelated command at the end of the query.
The most drastic example is:
SELECT email, passwd, login_id, full_name
FROM members
WHERE email = ‘ x’; DROP TABLE members; — ‘; — Boom!
The first part provides a dummy email address — ‘x’ — and we don’t care what this query returns: we’re just getting it out of the way so we can introduce an unrelated SQL command. This one attempts to drop (delete) the entire members table, which really doesn’t seem too sporting.
This shows that not only can we run separate SQL commands, but we can also modify the database. This is promising.
Mail me a password
We then realized that though we are not able to add a new record to the members database, we can modify an existing one, and this proved to be the approach that gained us entry.
From a previous step, we knew that bob@example.com had an account on the system, and we used our SQL injection to update his database record with our email address:
SELECT email, passwd, login_id, full_name
FROM members
WHERE email = ‘ x’;
UPDATE members
SET email = ‘bob@example.com’
WHERE email = ‘bob@example.com ‘;
After running this, we of course received the “we didn’t know your email address”, but this was expected due to the dummy email address provided. The UPDATE wouldn’t have registered with the application, so it executed quietly.
We then used the regular “I lost my password” link – with the updated email address – and a minute later received this email:
———————————————–
From: system@example.com
To: bob@example.com
Subject: Intranet login
This email is in response to your request for your Intranet log in information.
Your User ID is: bob
Your password is: hello
———————————————–
Now it was now just a matter of following the standard login process to access the system.
Mitigations (How to Prevent?
)
We believe that web application developers often simply do not think about “surprise inputs”, but security people do (including the bad guys), so there are three broad approaches that can be applied here.
Sanitize the input
It’s absolutely vital to sanitize user inputs to insure that they do not contain dangerous codes, whether to the SQL server or to HTML itself. One’s first idea is to strip out “bad stuff”, such as quotes or semicolons or escapes, but this is a misguided attempt. Though it’s easy to point out some dangerous characters, it’s harder to point to all of them. The language of the web is full of special characters and strange markup (including alternate ways of representing the same characters), and efforts to authoritatively identify all “bad stuff” are unlikely to be successful. Instead, rather than “remove known bad data”, it’s better to “remove everything but known good data”: this distinction is crucial. Since – in our example – an email address can contain only these characters:
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789
@.-_+
It’s important to note here that email addresses in particular are troublesome to validate programmatically, because everybody seems to have his own idea about what makes one “valid”, and it’s a shame to exclude a good email address because it contains a character you didn’t think about.
Be aware that “sanitizing the input” doesn’t mean merely “remove the quotes”, because even “regular” characters can be troublesome. In an example where an integer ID value is being compared against the user input (say, a numeric PIN):
SELECT fieldlist
FROM table
WHERE id = 23 OR 1=1 ; — Boom! Always matches!
Escape/Quotesafe the input
Even if one might be able to sanitize a phone number or email address, one cannot take this approach with a “name” field lest one wishes to exclude the likes of Bill O’Reilly from one’s application: a quote is simply a valid character for this field.
One includes an actual single quote in an SQL string by putting two of them together, so this suggests the obvious – but wrong! – technique of preprocessing every string to replicate the single quotes:
SELECT fieldlist
FROM customers
WHERE name = ‘ Bill O”Reilly ‘; — works OK
However, this naive approach can be beaten because most databases support other string escape mechanisms. MySQL, for instance, also permits ‘ to escape a quote, so after input of ‘; DROP TABLE users; — is “protected” by doubling the quotes, we get:
SELECT fieldlist
FROM customers
WHERE name = ‘ ”; DROP TABLE users; — ‘; — Boom!
The expression ”’ is a complete string (containing just one single quote), and the usual SQL trouble follow. It doesn’t stop with backslashes either: there is Unicode, other encodings, and parsing oddities all hiding in the weeds to trip up the application designer.
Getting quotes right is notoriously difficult, which is why many database interface languages provide a function that does it for you. When the same internal code is used for “string quoting” and “string parsing”, it’s much more likely that the process will be done properly and safely.
Some examples are the MySQL function mysql_real_escape_string() and perl DBD method $dbh->quote($value).
These methods must be used.
All I want to say is “ESCAPE ESCAPE ESCAPE” your values before putting into your query.
Cheers!
Posted by: M A Hossain Tonu on: November 18, 2008
include() and require() are slightly different. Basically, include is conditional and require is not.
This would include ’somefile’ if $something is true:
if($something){
include(“somefile”);
}
This would include ’somefile’ unconditionally
if($something){
require(“somefile”);
}
This would have VERY strange effects if somefile looked like:
} echo “Ha! I’m here regardless of something: $something<br>n”;
if (false) {
Another interesting example is to consider what will happen if you use include() or require() inside a loop.
$i = 1;
while ($i < 3) {
require(somefile.$i);
$i ;
}
Using require() as above will cause the same file to be used every single iteration. Clearly this is not the intention since the file name should be changing in each iteration of the loop. We need to use include() as below. Include() will be evaluated at each iteration of the loop including somefile.0, somefile.1, etc as expected.
$i = 1;
while ($i < 3) {
include(somefile.$i);
$i ;
}
The only interesting question that remains is what file will be required above. It turns out that PHP uses the value of $i when it reads the require() statement for the first time. So, the require() loop above will include something.1 two times. The include() loop includes something.1 and something.2.
There is a difference between the two, but speed-wise it should be irrelevant which one you use. print() behaves like a function in that you can do:
$ret = print “Hello World”;
and $ret will be 1.
That means that print can be used as part of a more complex expression where echo cannot. print is also part of the precedence table which it needs to be if it is to be used within a complex expression. It is just about at the bottom of the precedence list though. Only “,” AND, OR and XOR are lower.
echo is marginally faster since it doesn’t set a return value if you really want to get down to the nitty gritty.
If the grammar is:
echo expression [, expression[, expression] … ]
Then
echo ( expression, expression )
is not valid. ( expression ) reduces to just an expression so this would be valid:
echo (“howdy”),(“partner”);
but you would simply write this as:
echo “howdy”,”partner”;
if you wanted to use two expressions. Putting the brackets in there serves no purpose since there is no operator precedence issue with a single expression like that.
Posted by: M A Hossain Tonu on: June 9, 2008
অফিস আর বাসার মধ্যে ছোটাছুটি করতে করতে হাঁপিয়ে উঠেছিলো আসিফ রহমান। অনেক চেষ্টায় ছুটি মিলল ৩ দিনের। দীর্ঘ দিনের পরিকল্পনা অবশেষে বাস্তব হতে যাচ্ছে। ৫ বন্ধু মিলে দে ছুট কক্সবাজারের পথে।
যখন ওদের বাহন কক্সবাজার ছুঁই ছুঁই করছে তখনই বেজে উঠল মোবাইল। মোবাইলের পর্দায় ‘বস’ লেখা দেখেই আঁতকে উঠল আসিফ। একরাশ আশঙ্কা মনে, তবু বুকে সাহস নিয়ে মোবাইলে সবুজ বাটন চাপা মাত্র ওপার থেকে ভেসে এলো, “বায়ারকে যে আজকেই একটা কোটেশান দিতে হয়। এক্ষণই একটু অফিসে এসে সেগুলো পাঠিয়ে যাও প্লিজ।”
এরকম পরিস্থিতিতে অনেকের মাথায় বাজ ভেঙ্গে পড়লেও হাফ ছেড়ে বাঁচল আসিফ। বসকে বলল, “দুই মিনিটের মধ্যেই পাঠিয়ে দিচ্ছি।” বস কিছু না বুঝেই ফোনটি রেখে দিলেন। বসের ফোন রেখেই আসিফ মোবাইলের মাধ্যমেই প্রবেশ করল অফিসের কম্পিউটারে। নিজের ফোল্ডার থেকে কোটেশনটি ইমেইল করে পাঠিয়ে দিলেন সেই বায়ারের কাছে। এর পর হৈ হৈ করতে করতে সোজা কক্সবাজার।
এতটুকু এসে অনেকে ‘সায়েন্স ফিকশন’ পড়ছেন ভাবলেও আসলে এই ঘটনার পুরোটাই বাস্তব। এই বাস্তবতার নাম ‘মোরেঞ্জ’ (Morange)|
শব্দটি নতুন। এর সুবিধাগুলো আরও নতুন। কাজ করবে মোবাইল ফোনে আর কম্পিউটারে। বলা যায়, একটি মোরেঞ্জ এর সুবিধাযুক্ত মোবাইল সেট আপনার হাতে থাকা মানে আপনি বিশ্বের সবচেয়ে আধুনিক এবং সুবিধাভোগী মানুষ। মোরেঞ্জকে আইফোনের চেয়েও বেশি সুবিধাযুক্ত বলে মনে করা হচ্ছে।
কী এই মোরেঞ্জ?
মোরেঞ্জ হচ্ছে মোবাইলের একটি বিশেষ অ্যাপ্লিকেশন সফটঅয়্যার যা অধিকাংশ জাভা সমর্থিত সেটে কাজ করে। এই সুবিধা পেতে বিশেষ কোন ডিভাইস স্থাপনের প্রয়োজন নেই। ইন্টারনেট থেকে ডাউনলোড করে সফটঅয়্যারটি মোবাইল ফোন ও কম্পিউটারে ইনস্টল করতে হবে।
মোরেঞ্জ সেবাদানকারী প্রতিষ্ঠানের দেওয়া ইউজার নেইম ও গোপন নম্বর ব্যবহার করে এবং মোবাইল নেটওয়ার্কের আওতায় থেকেই মোরেঞ্জের যাবতীয় সুবিধা পাওয়া সম্ভব।
এতে জুড়ে দেওয়া আধুনিক যোগাযোগ পদ্ধতি ও সুবিধাগুলো অবাক করার মতো। এর মধ্যে রয়েছে ইমেইল, নিজের কম্পিউটারে সংযুক্ত হওয়ার জন্য রিমোট ডেস্কটপ, দূরে বসেই ক্যামেরা নিয়ন্ত্রণ, ব্লগিং, ফ্রেন্ড সার্চিংসহ আধুনিক সব সুবিধা।
রিমোট ডেস্কটপ
এটি মোরেঞ্জ ব্যবহার করে পাওয়া জরুরী এবং মজার একটি সুবিধা। মোরেঞ্জের রিমোট ডেক্সটপ সুবিধা ব্যবহার করে মোবাইল ফোন দিয়েই নিয়ন্ত্রণ করতে পারবেন বাসা কিংবা অফিসের ব্যাক্তিগত কম্পিউটারটি। যে কোন জায়গায় অবস্থান করে মোবাইল ফোনের মাধ্যমেই কম্পিউটারে ফাইল আদান প্রদান, ইমেইল চালাচালি, অ্যাড্রেসবুক, ছবি শেয়ারিংসহ আরও অনেক সুবিধা পাওয়া সম্ভব মোরেঞ্জ ব্যবহার করে।
পুশ মেইল
মোরেঞ্জ সুবিধা যুক্ত থাকলে কম্পিউটারে আউটলুক কিংবা ইউডোরায় যেভাবে ইমেইল পাওয়া যায় ঠিক তেমনভাবেই ইমেইলগুলো সময়মতো এসে হাজির হবে আপনার মোবাইলে। এটি ‘পপ-থ্রি’ সেবাও সমর্থন করে। সর্বোচ্চ ৫ মেগাবাইট আকারের অ্যাটাচমেন্ট ফাইলও পাঠানো যাবে ইমেইলে। পার্সোনাল মেইল সার্ভারের সঙ্গে যুক্ত হতে সক্ষম এটি। মজার ব্যাপার হচ্ছে, এ সব সুবিধা পেতে মোবাইল পরিসেবা প্রতিষ্ঠানকে প্রদান করতে হবে না অতিরিক্ত কোন অর্থও।
দূরে বসেই ঘরের খবর
মোরেঞ্জ আইপি ক্যামেরা, ওয়াইফাই ক্যামেরা এবং ওয়েব ক্যামেরা সমর্থন করে। ইন্টারনেটে সংযুক্ত থেকে আর মোরেঞ্জের সেবা নিয়ে দেশে কিংবা দেশের বাইরে বসেই দেখতে পাবেন ঘরে বা প্রতিষ্ঠানে স্থাপিত ক্যামেরার সামনে ঘটে যাওয়া সব কিছু।
পুশ আরএসএস
পুশ আরএসএস সুবিধা এর ব্যবহারবিধিকে আরও সহজ করে দিয়েছে। এই সুবিধায় স্বয়ংক্রিয়ভাবেই মোবাইলে পৌছে যাবে সর্বশেষ সংবাদ, স্টক এক্সচেঞ্জের খবরাখবর। পাবেন বিনোদন, পছন্দের ওয়েবসাইট, ইত্যাদি সব কিছু। মোরেঞ্জের পুশ আরএসএস সুবিধা প্রচলিত সব ধরনের আরএসএস সংস্করণ এবং প্রটোকলকে সমর্থন করে।
পিআইএম সিনক্রোনাইজেশন
হঠাৎ করেই একটি ঠিকানা জরুরী হয়ে পড়লো। কিন্তু সেটা আছে আপনার কম্পিউটারে। যেখানেই থাকুন না কেন মোরেঞ্জ সুবিধা কম্পিউটারের অ্যাড্রেস বুক, ক্যালেন্ডার, আউটলুক এক্সপ্রেসে থাকা প্রভৃতি তথ্য স্বয়ংক্রিয়ভাবে মোবাইলে নিয়ে আসবে। অর্থ্যাৎ মোরেঞ্জ সুবিধা সম্বলিত মোবাইল আপনার হাতে থাকা মানে আপনার ব্যাক্তিগত কম্পিউটারই আপনার হাতে থাকা।
মোরেঞ্জ কীভাবে কাজ করে
ব্যবহারকারীদের মধ্যস’তাকারী হিসেবে মূলত মোরেঞ্জ কাজ করে, যা তৃতীয় পক্ষ বা থার্ড পার্টি সেবা হিসেবে পরিচিত। এতে ব্যবহার করা হয় মোরেঞ্জ এন্টারপ্রাইজ (Morange Enterprise) নামের একটি বিশেষ সার্ভার যা ইন্টারনেটের সঙ্গে সরাসরি সংযুক্ত। মোবাইল ফোন মোরেঞ্জ সার্ভারের সঙ্গে যুক্ত হয় জিপিআরএস কিংবা এজ ইন্টারনেট সংযোগের মাধ্যমে। যখন একটি মোবাইল ফোন থেকে ব্যবহারকারীর নাম ও গোপন নম্বর দিয়ে লগইন করা হয় তখন তা সরাসরি যুক্ত হয় মোরেঞ্জ সার্ভারে। একইভাবে কোন কম্পিউটার থেকেও যখন লগইন করা হয় তখনও তা সরাসরি যুক্ত হয় ওই একই সার্ভারের সঙ্গে। যেমনটি বিভিন্ন চ্যাটিং সার্ভারের ক্ষেত্রে ঘটে থাকে। এভাবে মোরেঞ্জ সার্ভারের মাধ্যমে কম্পিউটার ও মোবাইল সংযুক্ত হয়।
মোরেঞ্জ সার্ভার জিপিআরএস, এজ, থ্রিজি, ওয়াইফাই, সিডিএমএ, ওয়্যারলেস ইত্যাদি সংযোগ সমর্থন করে।
মোরেঞ্জ সমর্থিত মোবাইল সেট
জাভা (Java- J2ME MIDP2.0) সমর্থক এবং ইন্টারনেট সংযোগ সুবিধাযুক্ত সেটগুলোর মাধ্যমেই মোরেঞ্জ সুবিধা পাওয়া যাবে। নিচে মোরেঞ্জ সুবিধা নেওয়া সম্ভব এমন কয়েকটি পরীক্ষিত মোবাইল সেটের মডেল উল্লেখ করা হলো।
Nokia
Nokia 3250, Nokia N70
Sony Ericssion
Sony Ericssion M600i, Sony Ericssion P900i, Sony Ericssion P990i, Sony Ericssion W800i,
Motorolla
Motorolla V3X, Motorolla E680i, Motorolla a1200, Motorolla A1000
Smart Phone
Dopod 838, Dpod 900, O2 Atom, O2 Mini
কোথায় পাবেন মোরেঞ্জ
এবার দ্বিতীয় ধাপ। মোরেঞ্জ সুবিধার জন্য প্রথমেই রেজিস্ট্রেশন করতে হবে। রেজিস্ট্রেশনের জন্য প্রবেশ করতে হবে morange.bdnews24.com সাইটে। এখানে রেজিস্ট্রেশন করে পাওয়া যাবে ব্যবহারকারীর নাম (ইউজার নেম) ও গোপন নম্বর (পাসওয়ার্ড)। রেজিস্ট্রেশন করার পর মোরেঞ্জের দুইটি সফটঅয়্যার ডাউনলোড করতে হবে। একটি মোবাইলের জন্য এবং অন্যটি কম্পিউটারের জন্য। সফটওয়্যার দুটি ডাউনলোড করে মোবাইলে এবং কম্পিউটারে ইনস্টল করে নিতে হবে।
কীভাবে ব্যবহার করবেন
মোবাইলে এটি ইনস্টল করার পর ‘Morange’ নামে আলাদা একটি আইকন তৈরি হবে। এই আইকনটিতে ক্লিক করুন। এরই মধ্যে যদি রেজিস্টেশন করে থাকেন তবে ‘Log in’ অপশনে যেয়ে ইউজার নেম ও পাসওয়ার্ড দিন। ‘মোরেঞ্জ নেটওয়ার্কে সংযুক্ত হয়ে তথ্য আদানপ্রদান করতে চাচ্ছে, অনুমতি দেবেন কি না?’ এ ধরনের একটি বার্তা আসবে। Yes নির্বাচন করুন। তারপর মোবাইলটিকে ইন্টারনেটে সংযুক্ত করার অপশন আসবে। এবার ইন্টারনেটে সংযুক্ত হোন। এভাবে মোরেঞ্জের সঙ্গে যুক্ত হলেই পাওয়া যাবে মোরেঞ্জের সব সুবিধা।
ব্যক্তিগত কম্পিউটারটিকে মোরেঞ্জ সুবিধায় মোবাইলের মাধ্যমে নিয়ন্ত্রণ করতে চাইলে কম্পিউটারেও মোরেঞ্জ সফটওয়্যারটি ইনস্টল করতে হবে এবং কম্পিউটারটিকেও রেজিস্ট্রি করা ইউজার নেম ও পাসওয়ার্ড দিয়ে লগ ইন অবস্থায় রাখতে হবে। এছাড়াও ‘ফাইলস ফাংশন’ মেন্যু থেকে Allow Remote File Access অপশনটি অন করে দিতে হবে।
যাদের মোবাইল ফোন নেই
যাদের মোরেঞ্জ যুক্ত মোবাইল ফোন নেই তারা কম্পিউটারের মাধ্যমেও এর অনেক সুবিধা ভোগ করতে পারবেন। কম্পিউটারের জন্য ডাউনলোড করা সফটওয়্যারটি ইনস্টল করলেই হবে। সফটওয়্যারটি ইনস্টল করার পর মেসেঞ্জারের মতো একটি অ্যাপ্লিকেশন আসবে যেখানে ইউজার নেম ও পাসওয়ার্ড বসিয়ে প্রথমে লগ ইন করতে হবে । লগ ইন অবস’ায় মোরেঞ্জ উইন্ডোতে প্রবেশ করলে একটি কন্ট্রোল প্যানেল উইজার্ড আসবে। এখান থেকেও নিয়ন্ত্রণ করা যাবে ইমেইল অ্যাকাউন্ট, চ্যাট অ্যাকাউন্ট, আরএসএস, ফ্রেন্ডলিস্ট ইত্যাদি।
কম্পিউটারে ইনস্টল করা মোরেঞ্জ থেকে ফোন করার সুবিধাও পাওয়া যাবে। মোরেঞ্জে দেয়া আছে একটি ফোন ডায়ালিং অপশন যার মাধ্যমে কম্পিউটার থেকেই মোবাইল ও ল্যান্ড ফোনে কল করা যাবে। ট্রায়াল ভার্সনে একবার ফ্রি কল করারও সুযোগ আছে।
চ্যাটিং
চ্যাটিং এর জন্য মোরেঞ্জ যে কোন ইমেইল একাউন্ট সমর্থন করে। অর্থ্যাৎ এমএসএন, ইয়াহু মেসেঞ্জার, গুগলটক, আইসিকিউ, এওএলসহ সব ধরনের চ্যাটিং সুবিধাই পাওয়া যাবে এক মোরেঞ্জের মাধ্যমেই।
বন্ধুত্বের সেতুবন্ধন
ইতিমধ্যে ফেস বুকের মতো সাইটগুলো ব্যাপক জনপ্রিয়তা পেয়েছে কেবল কমিউনিটি সুবিধার জন্য। এভাবে মোরেঞ্জ নেটওয়ার্কে যুক্ত থাকা দেশ-বিদেশে বিভিন্ন মোরেঞ্জ ইউজারদের মধ্যেও একটি কমিউনিটি গড়ে তোলার সুযোগ রয়েছে। আর এজন্য কম্পিউটারের সামনে বসার কোন প্রয়োজন নেই। মোরেঞ্জ সুবিধা সংবলিত মোবাইল সেট নিয়েই পাওয়া যাবে এই সুবিধা। ছবিসহ নিজের প্রোফাইল তৈরি করে রাখলে অন্যরাও আপনাকে খুঁজে পাবেন।
নিউজ এবং ব্লগ
বিডিনিউজটুয়েন্টিফোরডটকম, সিএনএনসহ বিভিন্ন সংবাদমাধ্যমের খবর তাৎক্ষণিকভাবে পড়ার সুযোগ পাবেন এই মোরেঞ্জ সুবিধার মাধ্যমে। শুধু তাই নয় এখানে ব্লগিং করার সুবিধাও রয়েছে।
ভার্চুয়াল স্টোরেজ
মোরেঞ্জের প্রত্যেক ব্যবহারকারী পাবেন ১০০ (ট্রায়াল ভার্সনে ৫০ মেগাবাইট) মেগাবাইট করে অনলাইন স্টোরেজ। এই স্টোরেজের মাধ্যমে ফটো, বিভিন্ন ফাইলপত্র শেয়ার করা যাবে।
বিনোদন
মোরেঞ্জ সুবিধা সংবলিত মোবাইল সেটটি দিয়ে একটি আইপডের চেয়েও বেশি সুবিধা ভোগ করার সুযোগ রয়েছে। বিভিন্ন পডকাস্ট চ্যানেলের সঙ্গে যুক্ত হয়ে রেডিওর মতো দেশি বিদেশি বিভিন্ন অনুষ্ঠান শোনার সুযোগ করে দেবে এটি।
খরচ কেমন, কোথায় কিনবেন?
বাংলাদেশে মোরেঞ্জের একমাত্র পরিবেশক বিডিনিউজটুয়েন্টিফোরডটকম (www.bdnews24.com)|। প্রাথমিক অবস’ায় ১৫ দিনের জন্য বিনামূল্যে এই সুবিধা দিচ্ছে কর্তৃপক্ষ। এই ট্রায়াল ভার্সনে অনেক সুবিধাই পাওয়া যাবে না এবং ১৫ দিন পরেই রেজিস্ট্রেশন বাতিল হয়ে যাবে।
সব ধরনের সুবিধা পাওয়ার জন্য নিতে হবে এর পেইড ভার্সন। পেইড ভার্সনের জন্য প্রতি মাসে দিতে হবে ৫ মার্কিন ডলার করে অথবা এক বছরের জন্য ৫৫ মার্কিন ডলার।
Posted by: M A Hossain Tonu on: June 9, 2008
Europe: Your I.P. Address Is Personal
By Saul Hansell at January 22, 2008, 3:31 pm
—————————–
At a hearing Monday, a top privacy regulator in Europe said something that needs to be said: I.P. addresses need to be treated as personal information.
I.P. or Internet Protocol addresses are sort of like phone numbers. They identify two different computers that are exchanging information over the Internet. The analogy is imperfect because Internet service providers often switch I.P. addresses around for home users. So knowing an I.P. address doesn’t guarantee you know what computer is at that address right now.
Nonetheless, Peter Scharr, Germany’s data protection commissioner, told a hearing of the European Parliament that I.P. addresses should generally be seen as personal information, according to a report by The Associated Press. Under some laws, and much industry practice, information that can identify an individual is often subjected to tougher standards for how it can be recorded, stored and transmitted than information about anonymous users and groups of users.
Mr. Scharr is the head of a group of European privacy regulators who are preparing a report on how Internet search engines, including Google, Yahoo and Microsoft, comply with Europe’s privacy laws, which are generally much tougher than those in the United States. The issue also relates to Google’s proposed acquisition of DoubleClick, which is still being reviewed by European regulators.
Most search engines keep log files that record every search and include the I.P. address of the computer conducting the search. Google recently said it would start to erase some of the digits in the I.P. numbers held in its files after 18 months.
Google and other companies maintain that I.P. addresses are not personally identifiable information. One part of the argument is that I.P. addresses identify a computer, not the person using it. True. But that’s the same as a telephone; just because a call was made from a number doesn’t tell you exactly who was talking. Nonetheless, I suspect that most people believe their phone number is quite personal.
The other part of the argument has to do with dynamic I.P. addresses, the practice by Internet providers of switching the I.P. address of home users. Even there, I.P. addresses are not as anonymous as they would appear. Internet service providers keep records of what I.P. addresses are assigned to which customers at what times. Combine these I.S.P. records with a log file from a Web site, and you have a map to who has done what on the Internet.
These two sets of records are not typically combined, but law-enforcement officials routinely subpoena them to try to track down criminals who used the Internet. And they sometimes are used as evidence in civil cases.
I’m not saying that I.P. addresses shouldn’t be collected. There are lots of good reasons for Web sites to keep track of their users (and lots of bad ones too). And sites track users in other ways, like with cookies and site logons.
But I do think it is simply too glib for Internet companies to claim they don’t record personal information when they do keep I.P. addresses.
Privacy is an ever more elusive commodity these days. And the minimum standard for any company, online or off, is to tell customers in crystal-clear language what information it collects, what it does with the information and what choices users have if they don’t want that information revealed.
———————————————————-
Source: The New York Times
Edition:Thursday, January 25, 2007
Recent Comments