Htaccess File

mickey9801/tvparty2/master/example/shop_non_member/.htaccess

HTTP_REFERER, REQUEST_FILENAME
<IfModule mod_php5.c>
  php_flag register_globals off
</IfModule>

<IfModule mod_php4.c>
  php_flag register_globals off
</IfModule>

<Files *.js>
    Order allow,deny
    allow from all
</Files>

<Files ~ "^.ht">
    Order deny,allow
    deny from all 
</Files> 

<Files *.log>
    Order deny,allow
    deny from all
</Files>

<Files error_log*> 
    Order deny,allow
    deny from all 
</Files> 

<Files *.ini>
    Order deny,allow
    deny from all
</Files>

<Files *.inc>
    Order deny,allow
    deny from all
</Files>

<Files *.inc.php>
    Order deny,allow
    deny from all
</Files>

<Files *.class.php>
    Order deny,allow
    deny from all
</Files>

<Files *.module.php>
    Order deny,allow
    deny from all
</Files>

<Files *.cache.php>
    Order deny,allow
    deny from all
</Files>

<Files *.bak>
    Order deny,allow
    deny from all
</Files>

<Files *.del>
    Order deny,allow
    deny from all
</Files>

Options -Indexes
Options +FollowSymLinks

RewriteEngine on
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{REQUEST_FILENAME} !nohotlinkpls.jpg  [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$   [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.domain.com$      [NC]
#RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ /img/nohotlinkpls.jpg [L,NC]
RewriteRule ^img/image_([0-9]+).jpg$ img/image.jpg?id=$1 [QSA,L]
RewriteRule ^admin/?$  /shopping/index.php?op=login&ss=index.php?op=backend/home [R,L]

## You should customize the path to your index.php
ErrorDocument 401 /shopping/index.php?op=error&e=HttpException&c=401
ErrorDocument 403 /shopping/index.php?op=error&e=HttpException&c=403
ErrorDocument 404 /shopping/index.php?op=error&e=HttpException&c=404
Exit mobile version