CS122B - Chen Li -- Application Server

Download Report

Transcript CS122B - Chen Li -- Application Server

CS122B: Projects in Databases and Web
Applications
Winter 2017
Notes 04: Domain Registration and
reCaptcha
Professor Chen Li
Department of Computer Science
CS122B
1
Motivation
• Register a domain name for people to
remember
• More flexibility to change the IP
address(es)
– If we change the IP address, as long as
the domain name is mapped to the new
address, we are good
• Important for marketing and sales
CS122B
2
Steps
• Go to a domain registrar site such as
GoDaddy
• Search for a good, available domain
name
• Purchase it!
CS122B
3
A good domain name is important!
• People tend to remember meaningful
names, even if they are long:
CarsInIrvine.com
• Try to avoid weird acronyms
CS122B
4
Domain Parking
• “Registration of an internet domain
name without that domain being
associated with any services”
• For sale
• For ads
CS122B
5
Mapping domain to IP
• Example: cs122b.com
• I purchased it from Godaddy.com
• Modify its zone file to map it to my
AWS instance
• For now on I can access cs122b.com
instead of ec2-52-36-XXX-XX.us-west2.compute.amazonaws.com 
CS122B
6
reCaptcha: preventing internet
bots
• Web sites have valuable information
• Example: ticketmaster.com
• “Bad people” write programs/bots to
send bad requests (e.g., registration,
buying tickets)
CS122B
7
First version: captcha
• Use
Captcha
to
correct
OCR
errors
CS122B
8
2nd version: recaptcha
CS122B
9
reCaptcha example:
TomcatFormReCaptcha.war
index.html
3. g-recaptcha-response
2. g-recaptcha-response
4. g-recaptcha-response
Secret Key
1. Site Key
CS122B
10