Improve provided .htaccess
Should be less unsafe...
This commit is contained in:
		@@ -1,5 +1,17 @@
 | 
				
			|||||||
AddHandler cgi-script .py
 | 
					Options -Indexes
 | 
				
			||||||
Options +ExecCGI
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ErrorDocument 403 "Access forbidden"
 | 
				
			||||||
ErrorDocument 404 /cgi/main.py
 | 
					ErrorDocument 404 /cgi/main.py
 | 
				
			||||||
ErrorDocument 500 "A very nasty bug found his way onto this very server"
 | 
					ErrorDocument 500 "A very nasty bug found his way onto this very server"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Order Deny,Allow
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<Files ~ "\.(py|pyc|db|log)$">
 | 
				
			||||||
 | 
						deny from all
 | 
				
			||||||
 | 
					</Files>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<Files main.py>
 | 
				
			||||||
 | 
						allow from all
 | 
				
			||||||
 | 
						AddHandler cgi-script .py
 | 
				
			||||||
 | 
						Options +ExecCGI
 | 
				
			||||||
 | 
					</Files>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user