To disable right-clicking on images and prevent downloading on your Webflow portfolio website, you can use custom code. Here's a step-by-step guide:
1. In your Webflow project, navigate to the page that contains the images you want to protect.
2. Click on the page settings (gear icon) in the left-hand panel.
3. Select the "Custom Code" tab.
4. In the head section, paste the following code:
```html
```
This script listens for the contextmenu event (triggered by right-clicking) and prevents the default action, which would open the browser's context menu.
5. Save and publish your site to see the changes.
Keep in mind that while this method can make it slightly more difficult for users to download your images, it's not foolproof. Skilled users can bypass this method by disabling JavaScript or using other techniques. Remember that once an image is loaded in a browser, it's technically downloadable.
If your goal is to protect your images, you might consider using other methods such as watermarking your images or using low-resolution versions for display purposes while keeping high-resolution versions for delivery to clients or authorized users.
Remember to balance the need for protection with usability and the user experience. Disabling right-clicking can be frustrating for legitimate users who may want to perform actions such as opening images in a new tab or saving them for personal use.