Apr 28 2011

Fend off the bad bots…

Ben Hoskins

I have now discovered a few tips and tricks to fend off those bad bots, crawlers, harvesters, you name it.

First of all you need to create yourself a simple blocklist of IP’s, one IP per line, IP’s you dont want visiting your site. (hopefully HozzaMedia will be publishing our own one for public use soon)

123.567.678.9
657.387.93.2
1.1.1.14
etc

The PHP needs to be something simple like a script that checks if the users IP is in the text file and if it is, display a “No Entry Error”. Originally my script only displayed a HTML page with text along the lines of “Your IP address has been blocked from our network due to suspicious activity, you are being monitored. Continue reading


Nov 5 2010

HTML 5…

Ben Hoskins

HozzaMedia is stating to use HTML 5!

Only the best thing to happen to the world (wide-web) since IE… pause for laughs from nerd community

Wikipedia says:

“HTML5 is currently under development, as the next major revision of the HTML standard.
Like its immediate predecessors, HTML 4.01 and XHTML 1.1, HTML5 is a standard for structuring and presenting content on the World Wide Web. The new standard incorporates features like video playback and drag-and-drop that have been previously dependent on third-party browser plug-ins such as Adobe Flash and Microsoft Silverlight.”

http://en.wikipedia.org/wiki/HTML5

Yes Wikipedia is correct HTML 5 is stating to kill of evil flash and copious amounts of unnecessary JavaScript (the downfall of Facebook), the internet will be faster and more stable with a few awsum new features such as <video>, <audio>  and placeholder=”"!

Check out w3schools for a detailed insite into the up and coming HTML 5 being officially finished in 2022, well worth the read and start incorporating it into your developments.

http://www.w3schools.com/html5/


Dec 2 2009

JavaScript remove search text…

Ben Hoskins

I have found this script comes in very handy from time to time and i cant seem to find it on the Internet. So here it is.

Code:

<input type="text" value="search" onclick="if (this.value == 'search') { this.value = '' }">

Output:

This will allow you to have an example in each text box to help the user better understand your form. Instead of the user having to manually delete all the text inside, it will simply remove itself at a click of a button AND it will only remove the text you ask it to so it wont end up deleting all of the text your user input into the textbox.

How it works…


if (this.value == 'search')

{

this.value = ''

}