# Anti Corruption - Static Archive

[![Static Site](https://img.shields.io/badge/Static-Site-blue.svg)](https://anticorruption.fidh.org)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

**This is a static website.**

## Overview

`Anti Corruption` is a static HTML website of the FIDH (International Federation for Human Rights) campaign "Anti Corruption" (French Exceptions). This campaign denounce the repression of whistleblowersexposed in Latina America, especialy Colombia and Dominican Republic.

## Languages

The site is available in one language:
- **Francais** (French) - Main site

## Project Structure

```
anticorruption/
├── index.html                # Main entry point
├── colombie/
│   ├── index.html            # Main entry point for colombie campain
│   └── images                # Main JavaScript
├── republiquedominicaine/
│   ├── index.html            # Main entry point for Dominican Republic compain
│   └── images                # Main JavaScript
├── robots.txt                # Crawler instructions
├── sitemap.xml               # Sitemap for search engines
├── security.txt              # Security policy
├── .gitignore                # Git ignore rules
├── .pre-commit-config.yaml   # Pre-commit hooks
├── README.md                 # This file
└── LICENSE                   # License information
```

## Security Features

This site implements comprehensive security best practices:

### HTTP Security Headers

- **Content Security Policy (CSP)**: Restricts sources for scripts, styles, and other resources
- **X-XSS-Protection**: Enables browser XSS filtering
- **X-Content-Type-Options**: Prevents MIME type sniffing
- **X-Frame-Options**: Prevents clickjacking attacks
- **Referrer-Policy**: Controls referrer information
- **Permissions-Policy**: Restricts browser features
- **Cross-Origin Policies**: COEP, COOP, CORP for security isolation

### Server Configuration

- Blocked access to sensitive files and directories
- Disabled directory listing
- Disabled server signature
- Protection against common exploits
- Hotlinking protection
- Proper MIME types configuration

### Privacy

- **No tracking**: Removed Google Analytics and other tracking codes
- **Cookie consent**: YouTube embed requires user consent before loading
- **GDPR compliant**: No personal data collection without consent
- **Archive status**: Clearly marked as static archive

## Development

### Prerequisites

- nginx 1.26+ (recommended)

### Installation

1. Clone the repository:
   ```bash
   git clone https://git.fidh.net/WebSites/anticorruption.git
   cd anticorruption
   ```
3. Point your web server to the repository root.

### Local Development

For local testing, you can use python's built-in HTTP server:

```bash
# pyhon3
python3 -m http.server
```

Then open `http://localhost:8000` in your browser.

### Pre-commit Hooks

This project uses [pre-commit](https://pre-commit.com) for code quality checks:

1. Install pre-commit:
   ```bash
   pip install pre-commit
   ```

2. Install the hooks:
   ```bash
   pre-commit install
   ```

3. Run manually:
   ```bash
   pre-commit run --all-files
   ```

The hooks include:
- JSON validation
- YAML validation
- Trailing whitespace removal
- End-of-file fixer
- Mixed line ending fixes
- No console.log statements
- No debugger statements
- Legacy browser compatibility checks

## Deployment

### Manual Deployment

1. Ensure all changes are committed
2. Pull changes on the production server

## SEO & Crawlers

### robots.txt

The `robots.txt` file includes:
- Standard crawler instructions
- Blocked sensitive paths
- Sitemap location
- Crawl delay
- Clean tracking parameters

### sitemap.xml

The sitemap includes all public pages with their priorities and change frequencies.

## Browser Support

The site is designed to work on modern browsers:
- Chrome (latest 2 versions)
- Firefox (latest 2 versions)
- Safari (latest 2 versions)
- Edge (latest 2 versions)
- Mobile browsers (iOS Safari, Chrome for Android)

## Accessibility

- Semantic HTML structure
- ARIA landmarks where appropriate
- Keyboard navigation support
- Color contrast considerations
- Alt text for images

## Performance

The site is optimized for performance:
- Static HTML with minimal PHP (no server-side processing for content)
- CSS and JavaScript files
- Image optimization
- Browser caching configured
- Compression enabled (gzip/deflate)

## Contributing

As this is an archive, contributions are limited to:
1. Security fixes
2. Accessibility improvements
3. Documentation updates
4. Bug fixes for display issues

### Pull Request Process

1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Make your changes
4. Run linting (`pre-commit run --all-files`)
5. Commit your changes (`git commit -m 'Add amazing feature'`)
6. Push to the branch (`git push origin feature/amazing-feature`)
7. Open a Pull Request

## Campaign Context

The "Anti Corruption" campaign aimed for denouncing the repression of whistleblowersexposed in Latina America, especialy Colombia and Dominican Republic. The campaign called for:
- Document SLAPP
- Increasing transparency in process.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgments

- FIDH (International Federation for Human Rights)
- All contributors to the original campaign

## Contact

For questions or concerns about this archive:
- Security issues: See `security.txt`
- General inquiries: Contact FIDH

---
*Last updated: 2026*
