What This Automation Does
This workflow scans a website URL to check if the site is safe.
It looks at security settings in HTTP headers and page code using AI.
The workflow sends a detailed email report with the results.
This helps find security problems fast and without needing expert knowledge.
Here is how the workflow works with inputs, process, and output.
Inputs
- User submits URL: Through a simple form where the website address is entered.
Processing Steps
- Fetch website data: The system grabs the full webpage content and headers.
- Analyze headers: AI checks HTTP headers like Content-Security-Policy for missing or wrong settings.
- Review page content: AI scans page HTML and JavaScript for security risks like XSS.
- Combine findings: Results from header and content checks are joined and scored with a security grade.
- Create report: A clear, colored HTML email is made with grades, warnings, and recommendations.
- Send email: The report is emailed to a specific address using Gmail.
Output
- Detailed security audit report: A visually styled email that shows security status and problem details.
This workflow saves time by automating checks that are hard to do manually.
It reduces mistakes and gives easy-to-understand results.
Who Should Use This Workflow
This workflow is good for web developers who want to check website safety without deep security skills.
It helps people working on e-commerce or other websites to find risks fast.
It works well for teams that want quick reports by email and want to avoid manual, slow checking steps.
Beginners can run it with little setup after importing the workflow.
Tools and Services Used
- n8n automation platform: Runs the workflow with nodes handling HTTP, code, AI, and email.
- OpenAI’s GPT-4o models: Perform smart analysis of headers and page code for security issues.
- Gmail service: Sends formatted security report emails via OAuth2 authorization.
Users can also self-host n8n for full control and privacy.
Beginner Step-by-Step: How to Use This Workflow in n8n
Step 1: Download and Import
- Find and click the Download button for this workflow on this page.
- Inside your n8n editor, choose Import from File.
- Select the downloaded workflow file to load it.
Step 2: Configure Credentials and Settings
- Open credential settings in n8n and add your OpenAI API Key.
- Add Gmail OAuth2 credentials for email sending.
- Update any placeholders like recipient email addresses in the Send Security Report node.
Step 3: Test the Workflow
- Use the form’s webhook URL to submit a test website URL (like https://example.com).
- Watch the workflow run inside n8n, check the email sent for correct report format and info.
Step 4: Activate for Production
- Switch the workflow’s toggle to Active to allow real scan requests.
- Start sharing the form URL with your team to scan any websites as needed.
This simple import and configure method lets beginners quickly deploy the workflow.
No need to build nodes from scratch or write code.
Inputs and Outputs
Input
- Single URL field: User inputs one website address to scan.
Output
- Email report: Rich HTML showing security grade, issues found, recommendations, and raw headers data.
Common Problems and Solutions
No Headers Found or Missing Header Errors
The HTTP request may not have full headers enabled.
Check the Scrape Website node’s options to make sure “Full Response” and header capture is turned on.
OpenAI Errors or Timeout
API keys may be invalid or limits exceeded.
Verify OpenAI keys in credentials and monitor usage on OpenAI’s dashboard.
Gmail Node Fails to Send
Make sure Gmail OAuth credentials are current and have correct permissions.
Reauthorize in n8n settings if needed.
Customization Ideas
- Change email recipient address in the Send Security Report node.
- Switch OpenAI model to full GPT-4o for deeper analysis.
- Add more form fields for scan options or notification emails.
- Modify grade thresholds in the Process Audit Results JavaScript node.
- Tweak styles and colors in the HTML email node for branding.
Conclusion
This workflow automates website security checks smartly and simply.
The email reports give clear, detailed results you can act on fast.
It saves many manual work hours and lowers chance of missing problems.
Try adding scheduled runs or ticket system integration next.
