SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Downloaden Sie, um offline zu lesen
Manipuler avec attention les URLs courtes



                Christophe Villeneuve




                           
???
    http://bit.ly/TugThb




    http://afup.org/pages/phptournantes2012/sessions.php




                                   
Pourquoi faut­il raccourcir ses URL ?
    ●   URL longues
    ●   Micro blogging
    ●   Twitter limite 140 caractères




                                     
Fabrication




          
Fabriquer vos URLs courtes
    ●   TinyURL – 11 caractères
    ●   Bit.ly – 6 caractères
    ●   g.co (Google) – 4 caractères
    ●   fb.me (Facebook)
    ●   t.co (Twitter)


        http://votre_url/xxxxxx          Calcul...
                                    
Exemple tiny_url
    function get_tiny_url($url)
      {
      $ch = curl_init();  
      $timeout = 5;  
      curl_setopt($ch,CURLOPT_URL,'http://tinyurl.com/api­create.php?url='.$url);  
      curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);  
      curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);  
      $data = curl_exec($ch);  
      curl_close($ch);  
      return $data;  
    }                                       
MySQL                      PHP
                                Formulaire
    ●   Id
        url_longue
                                Requete $sql
    ●


    ●   url_courte
    ●   Compteur
                                Insert into 'votre_table'
    ●   Date creation
                            ●   url_longue
    ●   Date acces
                            ●   date_creation
                         
En HTML
    <link rel="shortlink" href="http://bit.ly/TugThb" />




    http://afup.org/pages/phptournantes2012/sessions.php




                                       
     
Risques

                                         ●   Phishing
                                         ●   XSS
                                         ●   Failles navigateurs



    ●   SPAM
    ●   Repère associé (1.usa.gov)


                                      
Vérifier




        
Check Short URL (http://checkshorturl.com)




                         
     
Solution

    ●   Xpnd.it! (add­on Firefox)
    ●   View Thru (add­on Chrome)
    ●   Offre pro bit.ly (ex nyti.ms => New­York TImes)
    ●   ...




                                     
Questions ?



    hellosct1




                      

Weitere ähnliche Inhalte

Andere mochten auch

Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.
Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.
Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.Gobernabilidad
 
Etude Match Crossmedia Amaury MindShare
Etude Match Crossmedia Amaury MindShareEtude Match Crossmedia Amaury MindShare
Etude Match Crossmedia Amaury MindShareMindShare Paris
 
Mora Bancaria Y Extrabancaria 2010
Mora Bancaria Y Extrabancaria 2010Mora Bancaria Y Extrabancaria 2010
Mora Bancaria Y Extrabancaria 2010Daniel Moreno
 
Présentation1
Présentation1Présentation1
Présentation1mangeclous
 
Presentacion elearning
Presentacion elearningPresentacion elearning
Presentacion elearningSofy
 
1. gabriel faure example
1. gabriel faure example 1. gabriel faure example
1. gabriel faure example carneyce
 
La place de la technologie dans l'enseignement: Le changement a eu lieu.
La place de la technologie dans l'enseignement: Le changement a eu lieu.La place de la technologie dans l'enseignement: Le changement a eu lieu.
La place de la technologie dans l'enseignement: Le changement a eu lieu.Thouraya Daouas
 
Etre musicien et gérer son image en ligne - module 5
Etre musicien et gérer son image en ligne - module 5Etre musicien et gérer son image en ligne - module 5
Etre musicien et gérer son image en ligne - module 5David Labouré
 
Pocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilier
Pocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilierPocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilier
Pocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilierPwC France
 
Age ou vieux
Age ou vieuxAge ou vieux
Age ou vieuxcanhthep
 
Retrats aquareles 3
Retrats aquareles 3Retrats aquareles 3
Retrats aquareles 3dfiguere
 
Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...
Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...
Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...Universidad Autónoma de Barcelona
 
Beaux lacs du_monde
Beaux lacs du_mondeBeaux lacs du_monde
Beaux lacs du_mondethanerol
 

Andere mochten auch (20)

Semaine Ecole Entreprise 2014 : Bilan de l'édition 2013
Semaine Ecole Entreprise 2014 : Bilan de l'édition 2013Semaine Ecole Entreprise 2014 : Bilan de l'édition 2013
Semaine Ecole Entreprise 2014 : Bilan de l'édition 2013
 
Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.
Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.
Construyendo la Consulta Previa con los Mi´kmaq de Nova Scotia, Canadá.
 
Etude Match Crossmedia Amaury MindShare
Etude Match Crossmedia Amaury MindShareEtude Match Crossmedia Amaury MindShare
Etude Match Crossmedia Amaury MindShare
 
Mora Bancaria Y Extrabancaria 2010
Mora Bancaria Y Extrabancaria 2010Mora Bancaria Y Extrabancaria 2010
Mora Bancaria Y Extrabancaria 2010
 
Android
AndroidAndroid
Android
 
Projet carrières
Projet carrièresProjet carrières
Projet carrières
 
Présentation1
Présentation1Présentation1
Présentation1
 
Presentacion elearning
Presentacion elearningPresentacion elearning
Presentacion elearning
 
Reglamento sena
Reglamento senaReglamento sena
Reglamento sena
 
PréSentation Evjf
PréSentation EvjfPréSentation Evjf
PréSentation Evjf
 
1. gabriel faure example
1. gabriel faure example 1. gabriel faure example
1. gabriel faure example
 
La place de la technologie dans l'enseignement: Le changement a eu lieu.
La place de la technologie dans l'enseignement: Le changement a eu lieu.La place de la technologie dans l'enseignement: Le changement a eu lieu.
La place de la technologie dans l'enseignement: Le changement a eu lieu.
 
Etre musicien et gérer son image en ligne - module 5
Etre musicien et gérer son image en ligne - module 5Etre musicien et gérer son image en ligne - module 5
Etre musicien et gérer son image en ligne - module 5
 
Eos 550 premier tri pps
Eos 550 premier tri ppsEos 550 premier tri pps
Eos 550 premier tri pps
 
Brishow3
Brishow3Brishow3
Brishow3
 
Pocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilier
Pocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilierPocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilier
Pocket Guide SCPI 2014-2015 : un support résilient d’investissement immobilier
 
Age ou vieux
Age ou vieuxAge ou vieux
Age ou vieux
 
Retrats aquareles 3
Retrats aquareles 3Retrats aquareles 3
Retrats aquareles 3
 
Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...
Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...
Comparación entre la normativa vigente y el Proyecto de Ley de lucha contra e...
 
Beaux lacs du_monde
Beaux lacs du_mondeBeaux lacs du_monde
Beaux lacs du_monde
 

Ähnlich wie Manipuler avec attention les URLs courtes

Random tips that will save your project's life
Random tips that will save your project's lifeRandom tips that will save your project's life
Random tips that will save your project's lifeMariano Iglesias
 
Web scraping 101 with goutte
Web scraping 101 with goutteWeb scraping 101 with goutte
Web scraping 101 with goutteJoshua Copeland
 
Scraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHPScraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHPPaul Redmond
 
Introduction to Web Application Security - Blackhoodie US 2018
Introduction to Web Application Security - Blackhoodie US 2018Introduction to Web Application Security - Blackhoodie US 2018
Introduction to Web Application Security - Blackhoodie US 2018Niranjanaa Ragupathy
 
Stanford Drupal Camp 2015 - Repelling Bots, DDOS, and other Fiends
Stanford Drupal Camp 2015 - Repelling Bots, DDOS, and other FiendsStanford Drupal Camp 2015 - Repelling Bots, DDOS, and other Fiends
Stanford Drupal Camp 2015 - Repelling Bots, DDOS, and other FiendsSuzanne Aldrich
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATIONPHP BASIC PRESENTATION
PHP BASIC PRESENTATIONkrutitrivedi
 
"Swoole: double troubles in c", Alexandr Vronskiy
"Swoole: double troubles in c", Alexandr Vronskiy"Swoole: double troubles in c", Alexandr Vronskiy
"Swoole: double troubles in c", Alexandr VronskiyFwdays
 
Open Social Data (Jaca), Alejandro Rivero
Open Social Data (Jaca), Alejandro RiveroOpen Social Data (Jaca), Alejandro Rivero
Open Social Data (Jaca), Alejandro RiveroAragón Open Data
 
SearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your Logs
SearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your LogsSearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your Logs
SearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your LogsDistilled
 
Optimizing Your Frontend Performance
Optimizing Your Frontend PerformanceOptimizing Your Frontend Performance
Optimizing Your Frontend PerformanceThomas Weinert
 
Course_Presentation cyber --------------.pptx
Course_Presentation cyber --------------.pptxCourse_Presentation cyber --------------.pptx
Course_Presentation cyber --------------.pptxssuser020436
 
Reutov, yunusov, nagibin random numbers take ii
Reutov, yunusov, nagibin   random numbers take iiReutov, yunusov, nagibin   random numbers take ii
Reutov, yunusov, nagibin random numbers take iiDefconRussia
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingAlessandro Molina
 

Ähnlich wie Manipuler avec attention les URLs courtes (20)

Random tips that will save your project's life
Random tips that will save your project's lifeRandom tips that will save your project's life
Random tips that will save your project's life
 
Web scraping 101 with goutte
Web scraping 101 with goutteWeb scraping 101 with goutte
Web scraping 101 with goutte
 
Scraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHPScraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHP
 
The SPDY Protocol
The SPDY ProtocolThe SPDY Protocol
The SPDY Protocol
 
Introduction to Web Application Security - Blackhoodie US 2018
Introduction to Web Application Security - Blackhoodie US 2018Introduction to Web Application Security - Blackhoodie US 2018
Introduction to Web Application Security - Blackhoodie US 2018
 
Stanford Drupal Camp 2015 - Repelling Bots, DDOS, and other Fiends
Stanford Drupal Camp 2015 - Repelling Bots, DDOS, and other FiendsStanford Drupal Camp 2015 - Repelling Bots, DDOS, and other Fiends
Stanford Drupal Camp 2015 - Repelling Bots, DDOS, and other Fiends
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATIONPHP BASIC PRESENTATION
PHP BASIC PRESENTATION
 
Speed = $$$
Speed = $$$Speed = $$$
Speed = $$$
 
"Swoole: double troubles in c", Alexandr Vronskiy
"Swoole: double troubles in c", Alexandr Vronskiy"Swoole: double troubles in c", Alexandr Vronskiy
"Swoole: double troubles in c", Alexandr Vronskiy
 
Open Social Data (Jaca), Alejandro Rivero
Open Social Data (Jaca), Alejandro RiveroOpen Social Data (Jaca), Alejandro Rivero
Open Social Data (Jaca), Alejandro Rivero
 
Statsd eskimi
Statsd eskimiStatsd eskimi
Statsd eskimi
 
SearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your Logs
SearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your LogsSearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your Logs
SearchLove Boston 2017 | Dom Woodman | How to Get Insight From Your Logs
 
Optimizing Your Frontend Performance
Optimizing Your Frontend PerformanceOptimizing Your Frontend Performance
Optimizing Your Frontend Performance
 
Redis
RedisRedis
Redis
 
Qpsmtpd
QpsmtpdQpsmtpd
Qpsmtpd
 
WAF protections and bypass resources
WAF protections and bypass resourcesWAF protections and bypass resources
WAF protections and bypass resources
 
Course_Presentation cyber --------------.pptx
Course_Presentation cyber --------------.pptxCourse_Presentation cyber --------------.pptx
Course_Presentation cyber --------------.pptx
 
Reutov, yunusov, nagibin random numbers take ii
Reutov, yunusov, nagibin   random numbers take iiReutov, yunusov, nagibin   random numbers take ii
Reutov, yunusov, nagibin random numbers take ii
 
Random numbers
Random numbersRandom numbers
Random numbers
 
EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears Training
 

Mehr von Christophe Villeneuve

La boîte à outils de développements dans Firefox
La boîte à outils de développements dans FirefoxLa boîte à outils de développements dans Firefox
La boîte à outils de développements dans FirefoxChristophe Villeneuve
 
controler vos donnees éthiques dans le web
controler vos donnees éthiques dans le webcontroler vos donnees éthiques dans le web
controler vos donnees éthiques dans le webChristophe Villeneuve
 
Open Source et contribution : Une association gagnante
Open Source et contribution : Une association gagnanteOpen Source et contribution : Une association gagnante
Open Source et contribution : Une association gagnanteChristophe Villeneuve
 
Peur de la migration vers l’open source ?
Peur de la migration vers l’open source ?Peur de la migration vers l’open source ?
Peur de la migration vers l’open source ?Christophe Villeneuve
 
La sécurité applicative par le design
La sécurité applicative par le designLa sécurité applicative par le design
La sécurité applicative par le designChristophe Villeneuve
 
Mozilla french speaking community activites
Mozilla french speaking community activitesMozilla french speaking community activites
Mozilla french speaking community activitesChristophe Villeneuve
 
Monitoring dynamique : Grafana et Microsoft
Monitoring dynamique : Grafana et MicrosoftMonitoring dynamique : Grafana et Microsoft
Monitoring dynamique : Grafana et MicrosoftChristophe Villeneuve
 
Le futur de l'authentification webAuthn
Le futur de l'authentification webAuthnLe futur de l'authentification webAuthn
Le futur de l'authentification webAuthnChristophe Villeneuve
 
Tests d'accessibilite par la pratique
Tests d'accessibilite par la pratiqueTests d'accessibilite par la pratique
Tests d'accessibilite par la pratiqueChristophe Villeneuve
 

Mehr von Christophe Villeneuve (20)

MariaDB une base de donnees NewSQL
MariaDB une base de donnees NewSQLMariaDB une base de donnees NewSQL
MariaDB une base de donnees NewSQL
 
La boîte à outils de développements dans Firefox
La boîte à outils de développements dans FirefoxLa boîte à outils de développements dans Firefox
La boîte à outils de développements dans Firefox
 
pister les pisteurs
pister les pisteurspister les pisteurs
pister les pisteurs
 
controler vos donnees éthiques dans le web
controler vos donnees éthiques dans le webcontroler vos donnees éthiques dans le web
controler vos donnees éthiques dans le web
 
Infrastructure as code drupal
Infrastructure as code drupalInfrastructure as code drupal
Infrastructure as code drupal
 
Mariadb une base de données NewSQL
Mariadb une base de données NewSQLMariadb une base de données NewSQL
Mariadb une base de données NewSQL
 
Open Source et contribution : Une association gagnante
Open Source et contribution : Une association gagnanteOpen Source et contribution : Une association gagnante
Open Source et contribution : Une association gagnante
 
Pentest bus pirate
Pentest bus piratePentest bus pirate
Pentest bus pirate
 
Peur de la migration vers l’open source ?
Peur de la migration vers l’open source ?Peur de la migration vers l’open source ?
Peur de la migration vers l’open source ?
 
La sécurité applicative par le design
La sécurité applicative par le designLa sécurité applicative par le design
La sécurité applicative par le design
 
Foxfooding semaine 3
Foxfooding semaine 3Foxfooding semaine 3
Foxfooding semaine 3
 
Foxfooding
FoxfoodingFoxfooding
Foxfooding
 
Accessibilite web wcag rgaa
Accessibilite web wcag rgaaAccessibilite web wcag rgaa
Accessibilite web wcag rgaa
 
Mozilla french speaking community activites
Mozilla french speaking community activitesMozilla french speaking community activites
Mozilla french speaking community activites
 
Monitoring dynamique : Grafana et Microsoft
Monitoring dynamique : Grafana et MicrosoftMonitoring dynamique : Grafana et Microsoft
Monitoring dynamique : Grafana et Microsoft
 
Etes vous-pret pour php8 ?
Etes vous-pret pour php8 ?Etes vous-pret pour php8 ?
Etes vous-pret pour php8 ?
 
Le futur de l'authentification webAuthn
Le futur de l'authentification webAuthnLe futur de l'authentification webAuthn
Le futur de l'authentification webAuthn
 
Send large files with addons
Send large files with addonsSend large files with addons
Send large files with addons
 
Tests d'accessibilite par la pratique
Tests d'accessibilite par la pratiqueTests d'accessibilite par la pratique
Tests d'accessibilite par la pratique
 
Donnez la voix aux machines
Donnez la voix aux machinesDonnez la voix aux machines
Donnez la voix aux machines
 

Manipuler avec attention les URLs courtes

  • 1. Manipuler avec attention les URLs courtes Christophe Villeneuve    
  • 2. ??? http://bit.ly/TugThb http://afup.org/pages/phptournantes2012/sessions.php    
  • 3. Pourquoi faut­il raccourcir ses URL ? ● URL longues ● Micro blogging ● Twitter limite 140 caractères    
  • 5. Fabriquer vos URLs courtes ● TinyURL – 11 caractères ● Bit.ly – 6 caractères ● g.co (Google) – 4 caractères ● fb.me (Facebook) ● t.co (Twitter) http://votre_url/xxxxxx Calcul...    
  • 6. Exemple tiny_url function get_tiny_url($url)   {   $ch = curl_init();     $timeout = 5;     curl_setopt($ch,CURLOPT_URL,'http://tinyurl.com/api­create.php?url='.$url);     curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);     curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);     $data = curl_exec($ch);     curl_close($ch);     return $data;     }  
  • 7. MySQL PHP Formulaire ● Id url_longue Requete $sql ● ● url_courte ● Compteur Insert into 'votre_table' ● Date creation ● url_longue ● Date acces ● date_creation    
  • 8. En HTML <link rel="shortlink" href="http://bit.ly/TugThb" /> http://afup.org/pages/phptournantes2012/sessions.php    
  • 9.    
  • 10. Risques ● Phishing ● XSS ● Failles navigateurs ● SPAM ● Repère associé (1.usa.gov)    
  • 13.    
  • 14. Solution ● Xpnd.it! (add­on Firefox) ● View Thru (add­on Chrome) ● Offre pro bit.ly (ex nyti.ms => New­York TImes) ● ...    
  • 15. Questions ? hellosct1