Overview
This prompt aims to guide developers in creating a secure social media website with admin-only access. Programmers and coding professionals will benefit from the structured requirements and implementation steps provided.
Prompt Overview
Purpose: This project aims to create a secure social media platform exclusively for admin users.
Audience: The primary users are administrators who manage content and user interactions on the platform.
Distinctive Feature: The site features admin-only access for login and sign-up, enhancing security and control.
Outcome: A fully functional social media website with robust security measures and user data protection is achieved.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Development Tools & DevOps
- Techniques: Function Calling / Tool Use, Role/Persona Prompting, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Create a fully functional social media website that includes protected login and sign-up pages, accessible only by admin users. The website should enable standard social media features such as user profiles, posts, comments, and interactions, while ensuring that login and sign-up functionality is restricted exclusively to admin users. Implement secure authentication mechanisms, proper session management, and user data protection throughout the site.
# Requirements
– Admin-Only Access: Ensure login and sign-up pages are accessible only to admin users.
– Social Media Features: Include typical features such as:
– User profiles
– Posting content
– Commenting
– User interactions
– Authentication and Authorization: Implement secure and robust mechanisms.
– User Data Protection: Follow best security practices to safeguard user data.
– Error Handling and Feedback: Provide clear error messages and user feedback.
# Steps
1. Database Design: Create a schema to accommodate:
– Users
– Posts
– Comments
– Admin status
2. Backend APIs: Develop APIs for:
– User management
– Posts
– Interactions
– Include authentication checks.
3. Frontend Development: Create pages for:
– User profiles
– Posts
– Comments
– Other social features.
4. Secure Authentication: Implement:
– Password hashing
– Session or token management.
5. Access Restrictions: Ensure that login and sign-up pages are restricted to admin users only.
6. Testing: Thoroughly test all features to ensure:
– Security
– Proper access control.
# Output Format
Provide the complete source code, including:
– Frontend files
– Backend files
– Any necessary configuration files
– Instructions for deployment.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste the prompt into your coding environment.
- Follow the outlined steps for implementation.
- Ensure to meet all requirements listed.
- Test the functionality thoroughly before deployment.
- Review the output format for completeness.
Tips for Best Results
- Admin-Only Access: Implement middleware to restrict access to login and sign-up pages for non-admin users.
- Secure Authentication: Use password hashing and secure session management to protect user credentials and sessions.
- User Data Protection: Follow best practices like data encryption and regular security audits to safeguard user information.
- Error Handling and Feedback: Ensure clear error messages are displayed for failed logins or sign-up attempts to improve user experience.
FAQ
- What are the main features of the social media website?
The website includes user profiles, posts, comments, and interactions. - Who can access the login and sign-up pages?
Only admin users can access the login and sign-up pages. - What security measures are implemented for authentication?
Secure password hashing and session or token management are used for authentication. - How is user data protected on the site?
Best security practices are followed to safeguard user data throughout the site.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


