Skip to content

Instantly share code, notes, and snippets.

View samazgor's full-sized avatar
🎯
Focusing

Sam Azgor samazgor

🎯
Focusing
View GitHub Profile
@samazgor
samazgor / performance.conf
Created October 6, 2022 01:04 — forked from JamiesonRoberts/performance.conf
Apache Security Headers Setup for Serverpilot
Header set Connection keep-alive
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/svg+xml "access 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
@samazgor
samazgor / .htaccess
Created July 30, 2021 15:17 — forked from NinjaPress/.htaccess
Evitando HotLinking via .htaccess no Wordpress (Exceto permitidos)
# Disable hotlinking of images with forbidden message
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?seu-dominio.com.br/.*$ [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteCond %{HTTP_REFERER} !googleusercontent\. [NC]
RewriteCond %{HTTP_REFERER} !bing\. [NC]
@samazgor
samazgor / README.md
Created April 8, 2016 21:37 — forked from hofmannsven/README.md
Add WordPress admin menu pages with another Dashicon. (Note: This will require at least WordPress 3.8)