This is a free-to-use PHP drop-in to secure your website. It dynamically generates encryption for web pages and only users with our most updated Cydog Toolkit Extension will be able to view the content of pages served with our Deterrent Encryptor.
Pages served with Deterrent Encryptor will only work for users on Cydog Toolkit Browser Extension version 1.1.7+.
- Download cy-page-encryptor.php
- Add to backend of web project (e.g.,
/some/backend/path/internet/cannot/access/here/cy-page-encryptor.php) - Create a bridge that will serve users the encrypted web page content on the frontend from a path that can be accessed by anyone visiting your website. See example of contents of /some/frontend/path/internet/can/access/your_page.php below:
include "/some/backend/path/internet/cannot/access/here/cy-page-encryptor.php";
$webpage = encryptWebPage("/some/backend/path/internet/cannot/access/here.php", "your_chosen_password", "your_file_type");
if($webpage){
echo $webpage;
}| Feature | Protection Level | Impact |
|---|---|---|
| Dynamic Encryption | Critical | Prevents manipulation in transit |
| Secure Authentication | Critical | Enhances authentication strategies |
- Supported file types:
- html
- Serves static HTML/Output produced, which secures page against scripting injections.
- php
- Dynamically run PHP script/page and serves only the HTML/Output produced, which secures server against PHP related attacks.
- other (under development)
- Serves any output produced, which allows for encrypted APIs of any JSON output.
- All deterrence encryptor pages should be coded with ' instead of " enclosures:
- Right:
- Wrong:
| CPU | Memory | Result 1 | Result 2 |
|---|---|---|---|
| Intel Core i5-1240P | 512MBs | Average server encryption time per 1MB: 0.54 ms | Deterrence encryptor time for 24.58 KB file: 0.08 ms |
-
Backend Security: Place all pages in website backend and serve only display pages:
- Add user and password protection to backend with no user and password access (i.e. htaccess)
- Examples:
- display-test-example.php would be in the frontend
- test.php would be in the backend
- cy-page-encryptor.php would be in the backend
- display-test-example.php and cy-page-encryptor.php would create a bridge, allowing test.php to be rendered as an encrypted page so our extension can do its work
-
Use Authentication: Never remove webpage authentication and instead:
- Enhance authentication for important pages and/or
- Block bad actors who scrape your web page on non-authentication pages
This solution works in:
- Apache
- Nginx
Critical Note: This script supplements but doesn't replace server-side security. Always implement backend mechanisms like PHP Sessions with usernames and password and multi-factor authentication.
Send me a pull request!
Visit https://cydogbrowser.com
