Skip to content

Instantly share code, notes, and snippets.

View franck-paul's full-sized avatar
🏴‍☠️
Footer de merde

Franck Paul franck-paul

🏴‍☠️
Footer de merde
View GitHub Profile
# Bad AI bots
# \%20 = espace
RewriteCond %{HTTP_USER_AGENT} (AI2Bot|Ai2Bot\-Dolma|Amazonbot|anthropic\-ai|Applebot|Applebot\-Extended|Brightbot\%201\.0|Bytespider|CCBot|ChatGPT\-User|Claude\-Web|ClaudeBot|cohere\-ai|cohere\-training\-data\-crawler|Crawlspace|Diffbot|DuckAssistBot|FacebookBot|FriendlyCrawler|Google\-Extended|GoogleOther|GoogleOther\-Image|GoogleOther\-Video|GPTBot|iaskspider/2\.0|ICC\-Crawler|ImagesiftBot|img2dataset|ISSCyberRiskCrawler|Kangaroo\%20Bot|Meta\-ExternalAgent|Meta\-ExternalFetcher|OAI\-SearchBot|omgili|omgilibot|PanguBot|PerplexityBot|PetalBot|Scrapy|SemrushBot\-OCOB|SemrushBot\-SWA|Sidetrade\%20indexer\%20bot|Timpibot|VelenPublicWebCrawler|Webzio\-Extended|YouBot) [NC]
RewriteRule ^ – [F]
@franck-paul
franck-paul / dcstore.php
Created March 22, 2023 06:33
Récupération version du module et version Dotclear minimale si existante dans le fichier dcstore.xml
<?php
$version = '';
$dcmin = '2.0';
if (file_exists('dcstore.xml')) {
if (file_exists('src/Define.php')) {
$df = file_get_contents('src/Define.php');
if (preg_match('/\$this-\>version(?:\s*?)=(?:\s.?)[\'\"](.*?)[\'\"]/s', $df, $matches)) {
if (isset($matches[1])) {
$version = $matches[1];
@franck-paul
franck-paul / keybase.md
Created April 11, 2017 05:15
keybase.md

Keybase proof

I hereby claim:

  • I am franck-paul on github.
  • I am franckpaul (https://keybase.io/franckpaul) on keybase.
  • I have a public key ASAJImM52cBUW9rrco9inj-4Ql-B0oT5lKgRvI0cYdD9eAo

To claim this, I am signing this object:

@franck-paul
franck-paul / gist:81d97cbded610437d637
Created February 1, 2016 15:14
Verifying that +franckpaul is my blockchain ID. https://onename.com/franckpaul
Verifying that +franckpaul is my blockchain ID. https://onename.com/franckpaul