Blogvaria

This page is brought to you by Blogvaria (http://blog.evaria.com).

To obtain more information, ask questions and interact please visit our website.

Back to Blogvaria landing page
Feedback
Subscribe
   
Blogvaria

 

The personal pages

Posts filed in May, 2007

An introduction to JavaScript

Came across an article today about Essential JavaScript that focuses on bringing people who already know another programming language up to speed on JavaScript methodology. It covers the basic language constructs and contains multiple examples and references.

Javascript is an interpreted language with a C like syntax. While many people brush the language off as nothing more than a browser scripting language, it actually supports many advanced concepts such as object-oriented-programming, recursion, lambda, and closures. It’s a very approachable language for the beginner that quickly scales to be as powerful a tool as your skills allow.

Not surprisingly the article is written by Patrick Hunlock running Pat’s Place a genuine Tech blog author well known in the Digg community.

Filed under Programming | No Comments

How to filter incoming links

One of my clients wanted a simple filter to alert visitors coming from specific websites that they (the other site/company) was in no way associated with my client and his/hers services/products. Without knowing the exact IP I had to rely on PHP’s HTTP_REFERER. This predefined variable can be somewhat unreliable as a hacker may insert a fake value or the browser doesn’t set it. However, for the average visitor and browser (user agent) it seams to work as intended.

In order to make it easy to maintain I created a small function including an array containing the blacklisted domains. To make it work you need to include it before the XHTML header on all the files you want protected.

Full story | Filed under Programming | 1 Comment

Blocking unwanted visitors

Not to long ago some of my forms on evaria.com were abused (or at least somebody tried) to submit SPAM. In order to stop this I set up a simple rule in a few of my .htaccess files across the site.

In order for the “filter” to be effective you need to know from what IP(’s) you’re being targeted. This should be available in your server log or, if you are like me, in the admin notification mail received whenever someone is submitting one of your forms.

Below is an example from one of my .htaccess files, edit the IP’s to fit your needs:

order allow,deny
deny from 85.255.113
allow from all

ErrorDocument 403 http://www.example.com/403.html

You can add as many IP’s you want. From the example above I’m blocking all IP’s ranging from 85.255.113.0 to 85.255.113.255. These are all part of the “inhoster.com” network operating from the Ukraine. I might be blocking someone nice, but if so I’ve set up an info page (ErrorDocument 403) informing those (if any) about why and their options.

If you just want to give visitors coming from external websites a warning/info see my post about how to filter incoming links, but have in mind that this method can not be trusted in the same way as an IP block and should not be implemented if you depend on having the external client/site blocked.

Filed under Programming | No Comments

Lightbox Media, Iframe and IE

When including anything but an image using the Lightbox Media (my Lightbox clone) you might have noticed that IE automatically adds a border around the content. I’ve tried numerous CSS modifications to get this disappear but not until today found a proper solution.

The ridiculously simple solution came about after some Googleing and it all comes down to the frameBorder attribute being case sensitive. As my code read frameborder IE simply ignored it.

Download Download Lightbox Media version 1.01

Filed under Plugins, Programming | 5 Comments

Facebook - Windows online

Facebook wants to become like Windows (an Internet version) by allowing new partners access to their 23 million registered users. In a press conference Thursday Facebook revealed their new strategy, which will kick-off by giving the users the possibility of uploading and share videos. This to compete against YouTube off course, one of Google’s latest acquisitions.

However, the second big news might be even more exciting. Mark Zuckerberg (CEO - Facebook) compares his new strategy with Microsoft’s in the last part of the 80’s.

Zuckerberg announced, like the rumours had said, a new strategy that will allow other companies to reach the users using their own applications served through the Facebook system (web).

It’s a very ambitious goal and is somewhat opposite of the way we are used to explore the Internet. Rather than jumping from one site to another Zuckerberg believes that the users (you and me) wants as many services gathered on the same service - which is Facebook off course.

So far the social networks have been closed platforms, but this is now coming to an end apparently.

Facebook has already recruited 65 software companies that wishes to add their applications/services to Facebook. Among the most known is Amazon who wants the users to write book reviews that will appear simultaneously on Facbook and Amazon.

Filed under Personal opinions, Tech news | No Comments


Page 1 of 6123456»

Quick links - Blogvaria time links [ sitemap ]

2008 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec

2007 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec

2006 | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec

Akismet has protected Blogvaria from 55,288 spam comments. Design by Evaria.com. Powered by WordPress.
Blogvaria has delivered 2639 page views today, 3088 yesterday and 167240 since 29 Mar 2008 alone.

Close
E-mail It