Tải bản đầy đủ - 0 (trang)
Hack 16. Tame Long Yahoo! URLs

Hack 16. Tame Long Yahoo! URLs

Tải bản đầy đủ - 0trang

Those154charactersintheURLaredefinitelypastthe72charactersafezone.IfyoutakealookattheURL,youcansee

somevariable/valuepairsthatcontaintherelevantinformation.

Thestring?stx=coffeelooksimportant,asdoes

csz=Sebastopol%2C+CA.ButtherestoftheURLlookslikegibberish.



It'simportanttonotethatwhatlookslikegibberishisactuallyuseful

informationtoYahoo!,butit'snotusefultoyouwhenyou'retryingto

sharelinks,soyoucancutitout.



CuttingthegarbagecharactersoutoftheURLwillgiveyou

somethingmoremanageable:





http://local.yahoo.com/results?stx=coffee&csz=Sebastopo



Iftheareayouwanttosearchissmallenough,youcaneven

useaZipCodeinsteadofthecityandstatecombination:





http://local.yahoo.com/results?stx=coffee&csz=95472



The51charactersinthisURLarewellwithinthesafezone,and

theURLpointstoexactlythesamepage.Ifyoufrequentlyfind

yourselfsharingpagesfromYahoo!Local,youmightwantto

pickupabookmarkletbyBrianCantoni(availableat

http://www.cantoni.org/2005/06/06/ylocal)thatautomatesthe

processofremovingthegarbagecharacters.Dragthe

bookmarkletlinktoyourtoolbar,andclickitanytimeyouwant

tosharealinktoYahoo!Local.Thebookmarkletopensanew



emailmessagewithashortenedURLasthetextofthe

message.Fromthere,youcancomposeyourmessageand

sharethelinkwithoutfearofabrokenURL.

EvenURLsthatseemshortenoughcanbejustoverthelimit.

Here'sapageofYahoo!SearchresultsforBrevityisthesoulof

wit:





http://search.yahoo.com/search?ei=UTF-8&fr=sfp&p=Brevit



The75charactersinthisURLarebarelyoverthelimit.Butyou

candosometrimmingheretobringitbackunder72

characters.BycuttingtheURLtoitsbareessentials,youcan

getthesamesearchresultspagedownto59characters:





http://search.yahoo.com/search?p=Brevity+is+the+soul+of



Whenyou'rereadytoshareaURL,keepaneyeoutforwaysto

trimtheURLdowntosize.Buttherewillbetimeswhenthe

onlyoptionyouhaveisaURL-trimmingservice.



1.17.2.URL-TrimmingServices

ThescourgeoflongURLsissorampantontheWebthatseveral

freeserviceshaveappearedtohelpyoushareeventhemost

insanelylongURLswithothers.Toseehowtheseservicescan

help,here'sanexampleofaYahoo!MapsURLthatpointstoa

pagewithdrivingdirectionsfromSanFrancisco,CA,tothe

O'ReillyofficesinSebastopol,California:





http://maps.yahoo.com/dd_result?newaddr=&taddr=1005+Gra









csz=San+Francisco%2C+CA&country=us&tcsz=Sebastopol+CA&t



Asyoucansee,this135-characterURLisdensewith

information.There'snothingextraneouswecanstripouttoget

thesameinformation.ThisiswhereTinyURL.comcanhelp.

CopyanylongURLyou'dliketoabbreviateandpasteitintothe

formonthefrontpageathttp://tinyurl.com.ClicktheMake

TinyURL!button,andthenextpagewillgiveyouanabbreviated

URL,likethis:





http://tinyurl.com/b356b



These24charactersarewellwithinthesafezoneanddefinitely

won'tbreakinanemail.Anotherservice,availableat

http://shorl.com,producesthefollowingURL:





http://shorl.com/disaprigrohegi



EachoftheseservicesstoresthelongURLonitsserver,assigns

theURLarandomcharacterstring,andredirectstothatlong

URLwhensomeonevisitstheshortaddress.Shorl.comeven

providessomeusagestatistics,soyoucanseehowmany

peoplehaveusedtheshortenedURL.

Therearesomedrawbackstousingthesethird-partyservices.

Thepersonyou'resharingthelinkwithwon'tknowwhatsite

they'reactuallygoingtovisit.Thismightmakeforsomefun

practicaljokes,butit'salwaysbettertobeasdirectaspossible

whensharingURLswithpeople.Also,thelongevityofthelink

isn'tguaranteed.IfTinyURL.comorShorl.comgoesoutof



businesstomorrow,yourlinkwillfail.Usingredirectionservices

liketheseisn'tthebestchoiceifyou'regoingtoprintaURLina

book,forexample.Butforcasualuse,theseservicesareagood

waytosharelongURLswithoutannoyingthepersononthe

otherend.



Hack17.OptOutofAdvertiserCookies



AdvertisersonYahoo!mightsetbrowsercookiestotrack

patterns,butyoucantellthemyou'drathernotbe

tracked.

Browsercookiesareanimportantpieceofwebtechnologythat

siteslikeYahoo!relyontogiveyouapersonalizedexperience

attheirsite.Withoutcookies,Yahoo!wouldn'tbeabletoletyou

chooseyourownnewssourcesatMyYahoo!,watchyour

favoritestocksatYahoo!Finance,orevensendemailwith

Yahoo!Mail.Thecookieitselfissimplyasmallbitoftextthat

residesonyourcomputer.Whenthecookieissetbyasitesuch

asYahoo!,onlythatsitecanaccessthecookie'stextinthe

future.ThecookieletsYahoo!knowthataparticularuseris

browsingitssite,andYahoo!canbringupsavedpreferences

andsettingsforthatparticularuserforfuturevisits.



1.18.1.CookiesatYahoo!

Cookiesaren'tinherentlygoodorbad;suchajudgmentjust

dependsonhowthey'reused.Youshouldbeawareofhow

cookiesareused,sothatyoucandecideforyourselfwhether

youwantthemtobesetonyourcomputer.Youcanview

Yahoo!'sprivacypolicyregardingitsuseofcookiesat

http://privacy.yahoo.com.

InadditiontothecookiesthatYahoo!setsinorderto

rememberyoursettings,Yahoo!allowsothercompaniestoset

cookiesthroughitswebsite.OneofthewaysYahoo!makes

moneyisthroughadvertising,andYahoo!sellssectionsofits

pagestoothercompanies.Theseothercompanies(calledthird



parties)mightsetcookiesthatareinnowayrelatedtoyour

Yahoo!account.Inaddition,thesecookiesdonothavetofollow

theguidelinesinYahoo!'sprivacypolicy.Thismeansthatany

advertiseroradvertisingnetworkonYahoo!mighthaveitsown

privacypolicyyoushouldbeawareof.Yahoo!listsmore

informationaboutthispracticeontheirThirdPartyandAffiliate

CookiesonYahoo!page

(http://privacy.yahoo.com/privacy/us/adservers/details.html).

Mostofthesethird-partycookiesareprobablybeingusedto

trackpatternsinYahoo!usage.Ifacompanyhasan

advertisementonYahoo!Finance,itmightalsowanttoknowif

thoseusersarevisitingYahoo!Mail.Thesebroadusage

patternshelpcompaniesrefineandtargettheircampaigns

withouttrackinganyonepersonspecifically.However,ifyou

aren'tthrilledwiththeideaofbeingtrackedeveninageneral

wayacrossthesitesyouuse,mostoftheseadvertising

companiesgiveyouawayout.



1.18.2.OptingOut

Manyadvertisingnetworksoffertheabilitytooptoutofcookierelatedmonitoring.Byvisitingaspecialpageontheadvertiser's

site,youallowtheadvertisertosetacookieonyourmachine.

Insteadoftrackingyourmovements,thisopt-outcookietells

theadvertiserthatyoudon'twanttoparticipate.Thenextstep

issimplyfindingthispageonallofYahoo!'sthird-party

advertisersandsettingit.

Luckily,Yahoo!keepsalistofitsadvertisersat

http://privacy.yahoo.com/privacy/us/adservers/details.html.

Whenyoubringthepageupinyourbrowserandscrolldownto

thesectionlabeledOptingOutofThirdPartyCookies,you'llfind

alistofcompaniesthatarecurrentlyadvertisingatYahoo!

Unfortunately,Yahoo!doesn'tgothenextstepandprovidea

linktoeachcompany'sopt-outpage,butwhynotuseYahoo!



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Hack 16. Tame Long Yahoo! URLs

Tải bản đầy đủ ngay(0 tr)

×