This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import datetime | |
# Bludit API endpoint and authentication token | |
api_url = 'http://your-bludit-site.com/bl-api' | |
auth_token = 'your-authentication-token' | |
# Get the list of pages | |
response = requests.get(f'{api_url}/pages', headers={'Authorization': auth_token}) | |
pages = response.json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> <!-- | |
Copyright (c) 2023, Hayward @ PCGamers.win | |
All rights reserved. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this code and associated documentation files (the "Code"), to deal | |
in the Code without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Code, and to permit persons to whom the Code is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
At the command prompt type: | |
wget https://www.cloudflare.com/ips-v4 | |
wget https://www.cloudflare.com/ips-v6 | |
You should now have two files called ips-v4 and ips-v6 | |
Next: | |
Create a file, call it whatever you like (i.e addcloudflare.s) |