La création de site web implique de se tenir à jour et au courant des évolutions techniques.
Vous retrouverez ici les pages que nous avons visitées et dont nous avons estimées digne d’intérêt.
Il n’y a d’ailleurs pas que de la technique…
Stop Hotlinking with htaccess. Test your Image Hotlink Protection with our Hotlink Checker from altlab.com.
Novembre 2011, Par jpyratTo stop hotlinking from specific outside domains only, such as myspace.com, blogspot.com and livejournal.com, but allow any other web site to hotlink images :
RewriteEngine On RewriteCond %HTTP_REFERER ^http://(.+\.) ?myspace\.com/ [NC,OR] RewriteCond %HTTP_REFERER ^http://(.+\.) ?blogspot\.com/ [NC,OR] RewriteCond %HTTP_REFERER ^http://(.+\.) ?livejournal\.com/ [NC] RewriteRule .*\.(jpe ?g|gif|bmp|png)$ http://i.imgur.com/qX4w7.gif [L]
You can add as many different domains as needed. Each RewriteCond line should end with the [NC,OR] code. NC means to ignore upper and lower case. OR means "Or Next", as in, match this domain or the next line that follows. The last domain listed omits the OR code since you want to stop matching domains after the last RewriteCond line.
You can display a 403 Forbidden error code instead of an image. Replace the last line of the previous examples with this line :
RewriteRule .*\.(jpe ?g|gif|bmp|png)$ - [F]
→ Lire la suite sur le site d’origine…
