Initial commit: delta-chat-bot
This commit is contained in:
commit
8f47610133
10 changed files with 3603 additions and 0 deletions
17
php-proxy/.htaccess
Normal file
17
php-proxy/.htaccess
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Options -Indexes
|
||||
RewriteEngine On
|
||||
|
||||
# Allow only bot IP
|
||||
RewriteCond %{REMOTE_ADDR} !^90\.188\.48\.201$
|
||||
RewriteRule ^ - [F,L]
|
||||
|
||||
# Nice URLs: /rss/gremtelegram -> rss.php?channel=gremtelegram
|
||||
RewriteRule ^rss/([a-zA-Z0-9_]+)$ rss.php?channel=$1 [L,QSA]
|
||||
|
||||
# Block direct access to cache directory
|
||||
RewriteRule ^cache/ - [F,L]
|
||||
|
||||
# Cache images for 7 days
|
||||
<FilesMatch "\.(jpg|jpeg|png|gif|webp)$">
|
||||
Header set Cache-Control "public, max-age=604800, immutable"
|
||||
</FilesMatch>
|
||||
Loading…
Add table
Add a link
Reference in a new issue