This repository has been archived by the owner on Dec 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
36 lines (28 loc) · 1.71 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# NOTE: Do not edit, change, delete, or `attempt to fix this file`. We will not provide support for it.
#
# Interpret both .php & .html as PHP:
AddHandler php5-script .php .html
AddHandler php-cgi .php
ErrorDocument 404 '<h1>Error 404: Page Not Found</h1><h4>Please Play Minecraft While you think about where to go.</h4><h4>Don’t hit update.</h4><applet code="net.minecraft.Launcher" archive="https://s3.amazonaws.com/MinecraftDownload/launcher/MinecraftLauncher.jar?v=1367502965000" codebase="/game/" width="740" height="430"><param name="separate_jvm" value="true"><param name="java_arguments" value="-Xmx1024M -Xms1024M -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false"><param name="userName" value="404 Page"><param name="latestVersion" value="1367502965000"><param name="sessionId" value=""><param name="downloadTicket" value=""></applet> <footer>Mojang © 2009-2013. "Minecraft" is a trademark of Notch Development AB — <a href="http://minecraft.net/terms" target="_blank">Terms of Use</a></footer>'
# This will prevent images from being viewed by website users if the url is not from the domain name.
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?nicholas-smith\.tk/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://i.imgur.com/qX4w7.gif [L]
</ifmodule>
php_value display_errors off
php_value html_errors off
# BEGIN Security Features
# Deny config.php
<files config.php>
order allow,deny
deny from all
</files>
# Deny php.user.ini
<Files php.user.ini>
order allow,deny
deny from all
</Files>
# END Security Features