Dirty and Quickie deep linking prevention

Christos Ricudis ricudis at itc.auth.gr
Sat Sep 26 21:10:01 EEST 2009


George Notaras wrote:
> rouvas at di.uoa.gr wrote:
>
>   
>>>> Ginetai kai me to mod_rewrite tou Apache, kapos etsi:
>>>>
>>>> <IfModule mod_rewrite.c>
>>>>   RewriteEngine On
>>>>
>>>>   RewriteCond %{HTTP_REFERER} .*myspace.*
>>>>   RewriteRule  .*                 /dont-link-to-me  [G]
>>>>
>>>>   RewriteCond %{HTTP_REFERER} .*hi5.*
>>>>   RewriteRule  .*                 /dont-link-to-me  [G]
>>>>
>>>>   RewriteCond %{HTTP_REFERER} .*youtube.*
>>>>   RewriteRule  .*                 /dont-link-to-me  [G]
>>>> </IfModule>
>>>>
>>>> sto .htaccess tou directory.
>>>>
>>>>         
>>> Με αυτό όμως πιάνεις όλα τα links από τα παραπάνω sites...
>>>       
>> Αυτός δεν ήταν ο στόχος;
>>     
>
> Από ό,τι κατάλαβα, ο Ρικούδης δεν ήθελε από τρίτα site να κάνουν
> απευθείας linking σε κάποια φωτογραφία, ώστε να μην του τρώνε το
> bandwidth, ενώ η φωτό θα φαινόταν σαν να είναι hosted στο τρίτο site.
>   

Peripou, alla oxi akribws.

Protimw to approach "stous mh egkekrimenous referers serbirw ONTWS mia 
eikona, alla oxi akribws ayto pou perimenan na doun :>"

Genika m'aresei to programmatiko approach para to mod_rewrite gia kati 
pou endexomenws na xreiazetai kapoia eyeliksia kai otan de me noiazei 
poly h apodosh. Etsi mporw p.x. na tous serbirw to prwi to 
cthulhu-goatse.jpg kai to brady to 2cthulhus1cup.jpg.

To mod_perl einai ekplhktiko gia dyo logous :

1) Sou dinei th dynatothta na bazeis hooks *opoudhpote* mesa sto HTTP 
request processing chain tou Apache.  Me thn PHP de brhka kapoia 
(profanh) antistoixh leitourgikothta

2) Sou dinei mia teleia aformh na grafeis perl snippets se public 
mailing lists, mpainontas sto rou8ouni enos ekatommyriou pythontzhdwn 
pou petagontai meta kai arxizoun pali ta 1002 epixeirhmata gia to oti h 
dikia tous agaphmenh glwssa exei megalytera byzia apo th dikia sou.




More information about the Linux-greek-users mailing list