mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-10-31 05:45:27 +01:00 
			
		
		
		
	Created 4.2.3 uMatrix (markdown)
							
								
								
									
										44
									
								
								4.2.3-uMatrix.md
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
										
											
											
										
										
									
								
							
						
						
									
										44
									
								
								4.2.3-uMatrix.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | |||||||
|  |  | ||||||
|  | **Prevent Internet sites from requesting LAN resources** ( thanks @theWalkingDuck ) | ||||||
|  |  | ||||||
|  | this is/was the only default ABE rule in Noscript: | ||||||
|  | ``` | ||||||
|  | # Noscript | ||||||
|  | # Prevent Internet sites from requesting LAN resources. | ||||||
|  |  | ||||||
|  | Site LOCAL | ||||||
|  | Accept from LOCAL | ||||||
|  | Deny | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | We can easily rewrite it in the uMatrix way: | ||||||
|  | ``` | ||||||
|  | [Source]              * -> any external resource  | ||||||
|  | [Destination] 127.0.0.1 -> which tries to access the localhost or local resources | ||||||
|  | [Content]             * -> whatever the request or the requested content is .. | ||||||
|  | [action]          block -> should be BLOCKED | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | # uMatrix | ||||||
|  | # Prevent Internet sites from requesting LAN resources. | ||||||
|  |  | ||||||
|  | * 127.0.0.1 * block | ||||||
|  | * localhost * block | ||||||
|  | * [::1]     * block       ### block access to ipv6 localhost | ||||||
|  | * 192.168   * block       ### block access to LAN 192.168.x.x | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | The best practice is to use a separate browser for accessing local resources or using a temporary allow if needed ... but for those who need it permanently: | ||||||
|  | ``` | ||||||
|  | # uMatrix | ||||||
|  | # Accept from LOCAL | ||||||
|  |  | ||||||
|  | 127.0.0.1 127.0.0.1 * allow | ||||||
|  | localhost localhost * allow | ||||||
|  | [::1]     [::1]     * allow | ||||||
|  | 192.168   192.168   * allow | ||||||
|  | ``` | ||||||
|  | btw, don't forget to remove the `matrix-off: localhost true` rule. | ||||||
|  |  | ||||||
|  | --- | ||||||
		Reference in New Issue
	
	Block a user
	 earthlng
					earthlng