Home >Software Tutorial >Office Software >3 methods to prevent opening RAR compressed files, the last one is worth collecting!
php editor Baicao introduces you 3 methods to prohibit opening RAR compressed files. The last method is worth collecting! RAR files are a common compressed file format, but sometimes we want to restrict file access permissions and protect the file content from being opened at will. Through the following methods, you can easily prevent RAR files from being opened and ensure file security.
Method 1: Set "Open Password"
When compressing files, you can use software such as WinRAR to set an "open password" for the RAR file, which can ensure the security of the compressed package. The file can only be opened after entering the correct password, preventing unauthorized access.
Setting method:
1. Select the file or folder that needs to be compressed, right-click the mouse, and select "Add to compressed file" in the WinRAR option list.
2. After the [Compressed File Name and Parameters] dialog box pops up, click [Set Password]. When the dialog box pops up again, enter the password you want to set in the password field, click [OK] and then re-enter the password. It's set.
3. After setting, every time you open a RAR compressed file, you can still see the file name in the compressed package, but when you click to view the file, a dialog box will pop up prompting you to require a password to open the file.
Method 2: Hide file name
According to the "Method 1" setting, the files in the RAR compressed package cannot be opened at will, but the file names in the compressed package can be seen. If you want to prohibit opening the compressed package at will, and do not want to leak the contents of the files in the compressed package, You can set the file name to be hidden.
Setting method:
1. Follow "Method 1" to compress the file and set a password. When the [Enter Password] dialog box pops up, enter the password you want to set in the password field, check the [Encrypted File Name] below, and then click [OK] 】It is set.
2. After setting, every time you click to open the RAR file, you will not be able to open the compressed package and see the file name inside. Instead, a dialog box will pop up directly, prompting you to enter a password before you can open the compressed package.
It should be noted that whether it is "Method 1" or "Method 2", after setting a password for the RAR compressed package, remember to remember or save the password, because if you forget the password, you will not be able to open the compressed package, and the decompression software will also There is no "forgot password" option.
If you accidentally forget it, we need to use other tools to solve the problem.
For examplePepsi Niu RAR Password Recovery Tool can help us retrieve the "open password" of the RAR compressed package. The tool provides 4 retrieval methods. After importing the RAR compressed package into the tool, select the appropriate method and follow the prompts.
Method 3: Hide the RAR compressed package and "disguise" the compressed package as a file in other formats
If you don’t want to set a password for the RAR archive, and don’t want the archive to be opened at will, we can “disguise” the RAR archive as a file in other formats, so that the RAR archive can be hidden and cannot be opened. Compressed package.
Setting method:
1. Put the RAR compressed package into a folder, then rename the folder and add the following code after the file name:
.{20d04fe0-3aea-1069-a2d8-08002b30309d}
2. After adding the suffix code to the file name, you will see that the folder icon changes to the "This PC" icon.
3. Click to open the folder with the modified name, which also jumps directly to the "This Computer" folder. You cannot see the original RAR compressed package, so you cannot open the compressed package.
4. If you want to view the compressed package later, you only need to open the WinRAR decompression software first, then find the folder with the suffix added, and click to open the folder to see the original RAR compressed package;
If you no longer need to hide the compressed package and want to change the disguised "folder" to its original appearance, you only need to rename the folder, then delete the originally added code, and the disguised "folder" will be restored to its original appearance. .
The above is the detailed content of 3 methods to prevent opening RAR compressed files, the last one is worth collecting!. For more information, please follow other related articles on the PHP Chinese website!