Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

Hướng dẫn Chmod an toàn

CHMOD an toàn
Hiện nay có rất nhiều diễn đàn bị Local Attack và dẫn đến hiện tượng down forum rất nhiều . Bài hướng dẫn này không hoàn toàn có thể giúp các bạn chống được Local Attack mà chỉ hạn chế được phần nào. Nguyên nhân bị Local do những sai lầm chết người của các Admin, ngay cả VNMagic cũng mắc sai lầm rất đáng trách .

  • CHMOD sai, Forum của VNMagic CHMOD file conf_global. khong chap nhan php là 666 do đó dễ dàng bị Edit file và lỗi này được TQN khai thác liên tục mà Kingasawa không hề sửa đổi . Bản thân thư mục CHMOD la 755 do đó trên Server Linux, Config ko kỹ thì toàn bộ cấu trúc Folder và nội dung File đều có thể View được.
  • Cấu trúc Forum ko có nhiều sửa đổi so với bản gốc nên attacker có thể dễ dành đoán biết vị trí các file quan trọng cần để lấy thông tin .
  • Các thông tin quan trọng không hề được mã hóa .(cái này thì hạn chế một chút )
  • Các thông tin quan trọng và các Action can thiệp đến CSDL ko được bảo vệ bởi các firewall Thực ra Local Attack có thể làm được rất nhiều thứ nguy hiểm hơn và khả năng chống cự là không thể nếu như bạn ko Zendcode và không có một Server tốt (có thể chống được Remview, CGI Telnet==> đây là hai công cụ Local rất tốt, chưa kể đến SSH Local nếu có Shell) Do đây là bài viết về bảo mật vả lại cũng ko muốn phổ biến kỹ thuật Hack nguy hiểm này nên tôi chỉ trình bày sơ qua các nguyên nhân dẫn đến tình trạng bị Local Attack rất phổ biến hiện nay ở VN .

Từ các phân tích trên có một số khuyến nghị tôi xin đưa ra để mọi người khắc phục :
  • Mã hóa thông tin, các bạn có thể mã hóa thông tin lại và việc này sẽ vô hiệu hóa được việc các thông tin quan trọng của bạn bị đánh cắp .
  • Tôi sẽ cho các bạn download Zendcode miễn phí của Matrix, có đầy đủ License, các bạn Load tại đây nhé : OpenDNS
  • CHMOD cho đúng, các bước sau đây rất quan trọng để bạn chống Local nên đề nghị các bạn chú ý thực hiện cho đúng :
  1. CHMOD thư mục Public_html thành 710 thay vì 750 mặc định việc này sẽ giúp bạn bảo vệ được cấu trúc Website của mình.
  2. CHMOD thư mục là 701 và cố gắng đừng bao giờ CHMOD 777, có một số folder ko quan trọng, bạn có thể CHMOD 755 để có thể hiện thị đúng và đầy đủ một số nội dung trong Folder đó .
  3. CHMOD tập tin config của site thành 444 thay vì 644 thường dùng, điều này chống hacker local và view source của tập tin này
Chú ý thế này, một số Server hỗ trợ CHMOD thư mục được 101, nếu Server của bạn hỗ trợ cái này thì hãy sử dụng nó, vì biện pháp CHMOD này rất an toàn, đến ngay cả Owner cũng ko thể xem được cấu trúc Folder ngay cả khi vào FTP. Hiện Server của chúng tôi là hỗ trợ cái này
  • CHMOD File là 604 và nhớ rằng đừng bao giờ để là 666 nếu có việc cần 666 thì bạn CHMOD tạm để sử dụng lúc đó, sau đó hãy CHMOD lại ngay. Đối với các Server hỗ trợ CHMOD file 404 bạn hãy CHMOD như vậy, ví dụ Server chúng tôi
  • Thay đổi cấu trúc, tên file mặc định có chứa các thông tin quan trọng . Nếu có thể hãy thay đổi cả cấu trúc CSDL nếu bạn làm được .
  • Thiết lập các tường lửa truy cập Admin mà ko sử dụng đến CSDL, mã hóa User/Pass thì càng tốt, ngoài ra có hệ thống kiểm tra tác vụ của MOD, Admin ... nếu quyền hạn xác nhận mới được thực hiện (cái này Matrix sử dụng rất thành công) .

Trên đây là hướng dẫn từng bước giúp các bạn cố gắng chống Local attack, dù sao đây cũng chỉ là hướng dẫn cơ bản, trong quá trình thực hiện, các bạn nên linh động hơn một chút, nếu có thêm ý tưởng gì mới thì hãy cùng nhau thảo luận tại đây.
Hy vọng bài viết sẽ giúp các Admin bảo mật tốt hơn diễn đàn của mình.
(Nguồn từ net)

Beautiful Forms – Design, Style, & make it work with PHP & Ajax

Forms needs a solid visual structure, a profound hierarchy of form elements (Fields and Labels), powerful techniques and Functionality (AJAX) to make the form look and work creatively. There is a great bunch of creative, outstanding and individually designed from scratch forms.

Thanks to AJAX, we can provide real-time feedback to our users using server-side validation scripts and eliminate the need for redundant validation functions and processing data.

Today we wanted to share with you some great steps to get the perfect form: we will go through designing and usability you need to keep in mind, styling your form, spicing it up with some nice javascript effects, validating user’s input and finally getting it to work using PHP and Ajax.

1. Designing & Planning out your Form
Fancy Form Design Using CSS

A very useful CSS tutorial for making fancy forms with good usability.

Beautiful-forms7 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax

Web Application Form Design

Read these guidelines to help you better position a form for your specific purpose, the combination of layout, visual elements, and content that’s right for you should still be verified through user testing or data analysis (completion rates, errors, etc.).

Beautiful-forms6 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax

Web Form Design Patterns: Sign-Up Forms

A very interesting analysis of 100 popular web-sites where web-forms (should) matter. The second part of this analysis can be found here.

Beautiful-forms10 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax

Sensible Forms: A Form Usability Checklist

Follow these guidelines, and you’ll be off to a good start for creating sensible forms by using a form usability checklist.

2. Styling Beautiful Forms
How to create perfect form markup and style it with CSS

This post will explain different choices when marking up the forms, and the CSS styling involved in making them cross-browser compatible.

Beautiful-forms2 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax

Check out the vertical layout
the horizontal layout

Justify elements using jQuery and CSS

Justify elements using jQuery and CSS by calculating the width of a largest label and apply it to all labels. The jQuery function below does exactly this:

view plaincopy to clipboardprint?

  1. $(document).ready(function() { 
  2. var max = 0; 
  3.     $("label").each(function(){ 
  4. if ($(this).width() > max) 
  5.             max = $(this).width(); 
  6.     }); 
  7.     $("label").width(max); 
  8. }); 
$(document).ready(function() {
var max = 0;
$("label").each(function(){
if ($(this).width() > max)
max = $(this).width();
});
$("label").width(max);
});


Beautiful-forms8 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



CSSG Forms Collection


5 uniquely designed and coded web form styles.



Beautiful-forms1 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



FORM elements design using CSS and list (ul and dl)


Tables are useful to design complex HTML forms but a good alternative is to use list elements and CSS. This post will explain another way to design FORM using list elements <ul> and <li>.



Beautiful-forms11 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



XHTML/CSS web forms: 5 simple techniques


This post explains 5 simple techniques for creating web forms.



Beautiful-forms17 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Niceforms


Niceforms is a script that will replace the most commonly used form elements with custom designed ones. You can either use the default theme that is provided or you can even develop your own look with minimal effort.



Beautiful-forms23 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



2. Spicing up your Form


Changing Form Input Styles on Focus with jQuery


This tutorial will show you how to spice your form up with CSS classes and default values that change according to which form item is selected. All with just a splash of jQuery.



Beautiful-forms3 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Form field hints with CSS and JavaScript


This tutorial will show you how to get a nice effect, as you tab through each input field, some helper text appears in box out to the right.



Beautiful-forms4 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Context highlighting using jQuery


Learn how you can easily improve the user experience by highlighting the current context to enable users to focus only on a current action.



Beautiful-forms9 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Improve form usability with auto messages


This tutorial explains how to improve form usability adding an auto message which appears and disappears with a nice fade-in and fade-out effect when an user select a field.



Beautiful-forms12 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



STYLING FILE INPUTS WITH CSS AND THE DOM


File inputs (<input type="file" />) are the bane of beautiful form design. This simple, three-part progressive enhancement provides the markup, CSS, and JavaScript to address the long-standing irritation.



Beautiful-forms13 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Show/hide a nice Login Panel using Mootools 1.2


In this tutorial, we will see how to create a sliding login/signup panel for your website using Mootools 1.2.



Beautiful-forms18 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



FancyForm


FancyForm is a powerful checkbox replacement script used to provide the ultimate flexibility in changing the appearance and function of HTML form elements. It’s accessible, easy to use and degrades gracefully on all older, non-supporting browsers.



Beautiful-forms20 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Validating Forms


Validation Hints for your form


As someone is typing an in an input field, it would be nice give feedback to the user as they are typing if they have satisfied that field’s validation criteria. This article will explain one way of achieving this effect using JavaScript and CSS.



Beautiful-forms5 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Form.Check


A mootools script that allows you to validate different form fields before submission, Validation include: On leave a field & On submit the form. The message is displayed over the field, only one tip at once, tips don’t flash on submit if errors remain with the ability to close tips.



Beautiful-forms15 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



fValidator


fValidator is an open source (free) unobtrusive javascript tool for easy handling form validation. Here’s a brief list of the most important features: Works perfect with iMask as it’s complement, Multiple forms per page supported, Number of verified fields is not limited, Number of filters per field is not limited.



Beautiful-forms21 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Validate


Validate is a mootools form validator script, having the following features: optional onFail function, optional onSuccess function which will overide the form submition, this can be used to validate an ajax form, onBlur validating, shows errors next to item or in a list.



Beautiful-forms24 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



PHP & Ajaxifing Forms


ProtoForm


ProtoFormClass is a Prototype class that allows you to very easily validate the forms fields and send data in ajax. Features include: 1) Check required fields (input, textarea, radio, select, checkbox) and validate Email, Date, Telephone number and Url. 2) Send data and show response with Ajax, highlight the form field on focus and on error. 3) Lightweight (only 4KB), unobtrusive and cross-browser (tested on Firefox, Opera, Safari, Internet Explorer 6/7)

4) allows you to validate more form on the same page.



Beautiful-forms16 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Submit A Form Without Page Refresh using jQuery


In this tutorial you will learn how to submit a contact form that sends an email, without page refresh using jQuery! (The actual email is sent with a php script that processes in the background).



Beautiful-forms14 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



LightForm ::: Free Ajax/PHP Contact Form


LightForm is a free Ajax/PHP contact form. It combines FormCheck2 for fields validation and NiceForms to style text fields and textareas.



Beautiful-forms19 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here



Autosuggest / Autocomplete with Ajax


The AutoSuggest class adds a pulldown menu of suggested values to a text field. The user can either click directly on a suggestion to enter it into the field, or navigate the list using the up and down arrow keys, selecting a value using the enter key. The values for the suggestion list are to provided as XML, or as JSON (by a PHP script, or similar).



Beautiful-forms22 in Beautiful Forms - Design, Style, & make it work with PHP & Ajax



Check out the demo here

100+ Photoshop Text, Typography and Text Style Tutorials

Photoshop Text Tutorials
Photoshop is a great Tool To make stunning Graphics and Text Effects. There are more than 100 Great Free Photoshop Text Tutorials from Around the web. Enjoy the author’s Hard work and Learn How They Made the Text whooiii in Adobe Photoshop.

3D Flowery

3D Text

3d Texture

Aquatic

Barbed Wire

Bee Movie Text Effect

Broken glass

Chrome Text Effect

Bubble Text

Chain text

3D Chunky Letters

Colored Chrome

Colorful Neon Effect

Combined Style Text

Comic and Cartoon Styled

Copper

Digital Text effect

Dirty Grunge

Dreamy

Dreamy Tree

Drops

Explosive

Extruded Style Text Effect

Fire Text

Flaming Meteor Effect

Floral

Flourish Text

3d Text effect in Photoshop.

Frilly

Frost Ice Effect

Berry Style Kids Text effect

Furry text

Futurastic

How To make Gel Text.

Glass Type Text

Glowing Text Effect

God of war

Golden

Graffiti Text.

Graffiti Text

Grass

Rubber Stamp Text Effect

Half tone

Ice Text effect

Icy Text

Image in text

Iron Man Style

Jelly text

Kaboom

Kids Style

Light Burst

Lighting Effect tutorial

Light Shade

Mac Style Text effect

Mafia Blod Text

Matrix

Making Metal Cut Text effect

Metal Text Effect

Metallic 3D Text

Multiple Images In Text

Making Neon Effect Text

Oily

Old School type

Paper Craft

Pimp My Ride

Plasma Style Text

Plastic

Plastic Text Effect tutorial

Plastic

Plastic Text effect

Quantum

Radioactive Text Effect

Reflective

Reflection

Retro Style

Retro Style Text

Rusty Text

Sand Text

Scanline

Sleek Text Effect

Smoke

Snow

Snow on Text

Spectacular Style

Spikey text

Making Splat Water Text

Spray Paint

Star Wars

Star Wars Effect

Text in Stitches

Striped Text

Sugar Bag

Sugar Puff Like Text

Supernatural

Half Tone

Text on Turf Using Noise FilterText on Turf Using Noise Filter

Text Wrap

Ticker

Transparent Glass

Trees

Trendy Typography Poster

Typography-Wallpaper

Vanity License Plate

Vivid text

Warcraft Type Text effect


Warp

Water Color

Watercolor Text Effect

Woody type

Worn Torn

/