Referer Spoofer is a Chrome extension that allows users to set a custom Referer header for their HTTP requests. This tool is particularly useful for developers who need to test referer-based functionalities or simulate traffic sources in web applications.
- Easy Customization: Set a custom Referer header through a user-friendly interface.
- Instant Page Refresh: Automatically refreshes the page after applying or removing the referer.
- Referer Removal: Quickly reset and remove the custom Referer header.
- Dynamic Rules Management: Implements rules dynamically to modify HTTP headers without requiring page reloads.
- Error Handling: Improved error handling ensures smooth user experience and feedback for invalid inputs or system issues.
- Developer-Friendly: Ideal for testing behaviors related to referer-based traffic and redirections.
-
Clone this repository:
git clone https://github.com/yourusername/referer-spoofer-extension.git
-
Open Chrome and navigate to
chrome://extensions/
. -
Enable Developer mode by toggling the switch in the upper right corner.
-
Click on Load unpacked and select the
src
folder from the cloned repository. -
The extension should now appear in your toolbar.
- Click on the Referer Spoofer icon in the Chrome toolbar.
- To set a custom referer:
- Enter the URL you want to use as the referer in the input field.
- Click on Set Referer to apply the custom header.
- To remove the custom referer:
- Click on Delete Referer to reset to the default behavior.
- The page will automatically refresh after applying or removing the referer.
This extension requires the following permissions to function properly:
- declarativeNetRequest: To modify outgoing HTTP request headers, allowing the custom referer to be set or removed dynamically.
- activeTab: To interact with the current active tab where the user has enabled the extension.
- storage: To save the custom referer temporarily for reuse.
- scripting: To inject a script that refreshes the page after applying or removing the referer.
- Host Access Permission: To modify request headers on specified domains chosen by the user.
Each of these permissions is essential for providing the extension's core functionality and is used strictly in line with its purpose.
If you'd like to contribute or modify this extension:
- Fork this repository.
- Make your changes in a new branch.
- Submit a pull request for review.
Please ensure your code follows the repository's coding guidelines and includes comments where necessary.
Contributions are welcome! If you have ideas or suggestions to improve this extension, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or support, please reach out on GitHub.
This extension was created to simplify the process of customizing HTTP referer headers for developers. Use responsibly and in compliance with each website’s terms of service.