I have implemented mobile css for AnyAds site. Basically when your screen width is 480px or less then mobile style-sheet is used. You can easily test it by resizing your browser window
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="user-scalable=no, width=device-width">
<link rel="stylesheet" type="text/css" href="/styles/android.css" media="only screen and (max-width: 480px)">
<link rel="stylesheet" type="text/css" href="/styles/desktop.css" media="screen and (min-width: 481px)">
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/styles/desktop.css" media="all">
<![endif]-->
Writing Javascript code that works across all browsers in uniform manner is hard. It makes perfect sense to use compatibility layer that makes most modern browsers behavior the same. One fantastic library is jQuery. Core concept is to use CSS 3 selector syntax and commands chains leading to compact and portable code across all browsers. This library is highly recommended for your next AJAX project. Code less and do more !
This year we have exceeded 1 million sites tracked milestone. Every day more sites are being discovered using our 24/7 system running on open source software stack utilizing LAMP
Could not register com.au domain name due to strict rules in Australia therefore had to settle for australia-info.org domain name. Australia directory will grow daily as our system crawls and processes more web sites round the clock
Recently I had experience of automated bot overloading my site by scrapping pages rapidly and using multiple connections. Contra measures was to slow bot down and return empty payload for each GET request.
I have created sleep.php page which sleeps for 60 seconds before returning content:
<?php sleep(60); // 1 minute ?>
In Apache .htaccess file I have added the following entry:
RewriteCond %{REMOTE_ADDR} 188.165.211.206
RewriteRule .* http://findsa.co.za/sleep.php [P]
Any request from IP 188.165.211.206 will be redirected by internal proxy to http://findsa.co.za/sleep.php so it will wait 60 seconds before receiving empty reply
This simple technique will stop out of control bots overloading your web site !
You should monitor server load via cron job and send yourself email alert when unusual high load occurs. By watching Apache log file real time you can identify IP address from where attack occurs
tail -f access_log
:: Next Page >>
This blog is actually a very special blog! It automatically aggregates all posts from all other blogs. This allows you to easily track everything that is posted on this system.
| Next >
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||