Skip to main content

Posts

URL Masking (cloaking)

So you may have come across the term of cloaking URLs, this usually sounds evil and bad, like cloaked pages, which is something entirely different. Cloaking pages is presenting pages based on certain conditions, usually presenting a specific page to Google, for example. Doing this will get you banned and removed from Google's index. Not good. Cloaking URLs is a slightly different concept. It's showing a URL that usually points to something in your own domain. Once you click on the link you'll be redirected to the 'real' destination URL. For example a CJ link for eBay would look like this: http://rover.ebay.com/rover/1/711-1751-2978-328/1?aid=10366506&pid=123456 But to cloak it you would make it look like this: http://www.money-code.com/ebay For this example we'll use Apache's module called mod_rewrite. Almost all installs of Apache have this installed, but some may not, so you'll need to verify this. Also, this will need to be managed via a .htaccess...

URL Masking With Page Retrieval Software

This is software that retrieves a web page and then displays it in the browser. PHP or SSI (in conjunction with a CGI program) can be used. Other programming languages can be used, also, like ASP. With PHP, the program code is generally right in the web page source code. With SSI, the SSI tag calls an external program to fetch the web page. The code on the PHP/SSI web page retrieves the remote web page, inserts a base URL tag into the retrieved web page source code, then displays the contents of the retrieved web page. The URL in the browser's address bar does not change. You end up with the contents of a web page in the browser window that is located at a URL different than the URL in the browser's address bar. The web page originally loaded into the browser and the web page retrieved from elsewhere may be on different domains. There are no visual clues that the web page being displayed is not at the URL in the browser's address bar unless the web page being dis...

URL Masking With Apache rewrite

Rewriting URLs in a certain way with the .htaccess file can display web pages from a URL different than the URL in the browser's address bar. However, both the URL in the address bar and the web page being viewed must be located on the same domain as the .htaccess file. There are no visual clues that the web page being displayed is not at the URL in the browser's address bar unless the web page being displayed itself contains clues. There are many nuances to consider when writing URL redirect lines for the .htaccess file. Consider testing with an .htaccess file in an otherwise unused subdirectory before going live. Here is a simple directive that will rewrite all URLs for any documents in the /free directory so the /paid/index.html will display, instead. The URL in the browser's address bar will be the original URL to a document in the /free directory. Yet, web page /paid/index.html is being viewed. RewriteEngine On RewriteCond %{REQUEST_URI} ^/free($|/) RewriteR...

Current PHP trends

Here are the PHP stats for October 2008. To learn about methodology, read la section phpversion. 35.1 millions servers hosted on 2.1 millions IP were surveyed during October, and 12.7 were used for stats : domaines without web sites, those unreachable, ISP, shared hosters or domain parkings were not considered. This map represents PHP market share for each country. Green countries are the one using most PHP, red countries the least and yellow countries are in the world average (32,84 %). The table below show the exact figures for each country. Some countries may no show on the map, and will require the larger map (click on the graphic). Some countries may not be represented at all. Bahamas (.bs) 96.23 % Cote d'Ivoire (.ci) 69.03 % Vanuatu (.vu) 68.40 % Tajikistan (.tj) 67.39 % Korea, Republic of (.kr) 64.67 % Ukraine (.ua) 62.65 % Georgia (.ge) 61.80 % Tokelau (.tk) 60.44 % Netherlands Antilles (.an) 58.06 % Indonesia (.id) 56.84 % Panama (.pa) 55.79 % Uzbekistan (.uz...

Cloud computing to fuel open source explosion

Cloud computing will fuel growth in open source software as companies try to manage costs, according to database heavyweight Ingres. Tom Berquist, former managing director of financial powerhouses Citigroup and Goldman Sachs and now CFO of open source database firm Ingres, made the prediction last week. Ingres, the second largest open source company, counts the likes of BAE Systems, Cathay Pacific and Lufthansa among its customers. Berquist said the cloud computing model --of companies' serving applications over the Internet--requires vendors to spend large amounts of cash buying and maintaining servers, telecoms infrastructure and software such as operating systems, Web, application and database servers to support their software as a service (SaaS) operation. He added because SaaS vendors needed to invest in more hardware and software than traditional software vendors--where applications are sold to customers to install on their own ma...

Cloud Computing new Web 2.0 paradigm

Cloud computing is a computing paradigm in which tasks are assigned to a combination of connections, software and services accessed over a network. This network of servers and connections is collectively known as "the cloud." Computing at the scale of the cloud allows users to access supercomputer-level power. Using a thin client or other access point, like an iPhone, BlackBerry or laptop, users can reach into the cloud for resources as they need them. For this reason, cloud computing has also been described as " on-demand computing ." This vast processing power is made possible though distributed, large-scale cluster computing , often in concert with server virtualization software, like Xen , and parallel processing . Cloud computing can be contrasted with the traditional desktop computing model, where the resources of a single desktop computer are used to complete tasks, and an expansion of the client/server model. To paraphrase Sun Microsystems' famous ad...

Cache it! Solve PHP Performance Problems

<p><strong>In the good old days when building web sites was as easy as knocking up a few <a href="http://www.sitepoint.com/glossary.php?q=H#term_75" class="glossary" title="HTML stands for HyperText Markup Language.">HTML</a> pages, the delivery of a web page to a browser was a simple matter of having the web server fetch a file. A site's visitors would see its small, text-only pages almost immediately, unless they were using particularly slow modems. Once the page was downloaded, the browser would <a href="http://www.sitepoint.com/glossary.php?q=C#term_21" class="glossary" title="Cache, pronounced "cash", refes to a stored copy of (or pointers to) previously accessed data. ">cache</a> it somewhere on the local computer so that, should the page be requested again, after performing a quick check with the server to ensure the page hadn't been updated, the browser could displa...