• 0

Apache Config for Anti-SOPA Blackout


Question

For anyone that might be helped by this, I've googled it and tried to make it as drop-dead easy as it can be.

Good for Apache Servers (likely 1.3 and higher)

1. Create a page "antisopa.html" and place it in the root of your web directory (eg, /var/www/html/antisopa.html)

2. Insert the following at the end of your httpd.conf


RewriteEngine On
#RewriteCond %{REQUEST_URI} !^/omit.*
RewriteRule /.* http://www.yourdomain.com/antisopa.html
[/CODE]

3. Save your config and restart your apache server service and test.

On the second line (RewriteCond...), you can add directories to omit or select directories to only redirect for. Currently it's set to not redirect any request to the "omit" directory. Uncomment and change it if you need.

For today:

Recomment the last 3 lines, save the config file and restart your apache service and your site will be back to normal.

Then, uncomment the relevant lines and save the config. All you'll need to do on the 17th is restart apache for it to take effect.

Open to any suggestions on how to improve this.

Edit: I have uploaded a"antisopa.html" document that I'm using, just incase it's helpful for anyone else. It's XHTML 1.0 Strict compliant.

antisopa.zip

Edited by cybertimber2008
  • Like 1

8 answers to this question

Recommended Posts

  • 0

And this was posted before it was shelved. Shelved != overruled by the way.

And there is still PIPA which is just as bad as SOPA.

Ahh okay, fair enough!

I got told they were both overruled, I think I'll read up on them now :p

Useful code by the way, I'm using it to redirect my main website to my business page :)

This topic is now closed to further replies.
  • Posts

    • 2TB WD_Black SN7100 PCIe Gen4 NVMe SSD drops to its lowest price in over three months by Fiza Ali Amazon is currently offering the 2TB WD_Black SN7100 internal solid-state drive at its lowest price in over three months, so you may want to check it out, if you have been considering a storage upgrade, before the deal dries up (purchase link is toward the end of the article). Featuring a PCIe Gen 4.0 interface and M.2 2280 form factor, the SN7100 promises to deliver sequential read speeds of up to 7,250MB/s and sequential write speeds reaching 6,900MB/s, offering as much as a 35% improvement in performance compared with the previous generation. It also achieves random read speeds of 1,000,000 IOPS and random write speeds of 1,400,000 IOPS. The drive uses Western Digital’s TLC 3D NAND technology for reliable performance and is further supported by a five-year limited warranty. It also offers strong endurance, rated at up to 1,200TBW, making it suitable for demanding workloads such as gaming, content creation, and high-speed recording. Moreover, its DRAM-less architecture claims to improve power efficiency (the SSD relies on system memory for caching via HMB), while the WD_Black Dashboard software enables users to monitor drive health, install firmware updates, and activate Game Mode for potentially better performance. Finally, it operates within an operating temperature range of 0°C to 85°C, and can withstand storage temperatures from -40°C to 85°C. 2TB WD_Black SN7100 PCIe Gen4 NVMe SSD: $242.96 (Amazon US) Check this deal out if you want a 4TB option. Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • Hopefully this will fix the issue of no sound I have since last months stupid, and non-removable, Microsoft Corporation AudioProcessingObject Driver Update (1.0.3.56670)
    • It IS confusing! What channel are you in on each device? I'm guessing your 16GB device is on Experimental (formerly known as Dev) and your 128GB is on Beta.
    • 100 for the base game , 120 for pre release with bonus unlocked content (a pair of boil washed underpants for Trevor)
  • Recent Achievements

    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
    • One Month Later
      Genuinetonerink- Dubai earned a badge
      One Month Later
    • Week One Done
      Genuinetonerink- Dubai earned a badge
      Week One Done
    • One Year In
      hhgygy earned a badge
      One Year In
    • Week One Done
      AMV earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      514
    2. 2
      +Edouard
      163
    3. 3
      PsYcHoKiLLa
      86
    4. 4
      Steven P.
      74
    5. 5
      Michael Scrip
      73
  • Tell a friend

    Love Neowin? Tell a friend!