# Run Php without filename extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

# Return 404 if original request is .php
RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
RewriteRule .* - [L,R=404]


#RewriteEngine on
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC]
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]
#RewriteRule \.(jpg|jpeg|gif|svg)$ http://dropbox.com/hotlink-placeholder.jpg [NC,R,L]

RewriteEngine On
RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# This will allow access to only www.example.com 
#Access-Control-Allow-Origin: http://www.example.com

#Last, if you’ve discovered that another site is actively mirroring your own, you can also block the site’s IP address.
#Deny from 123.123.123.123