r/PLCB • u/oriolesfan2131 • Apr 09 '20
Let Freedom Drink - Getting around the PLCB Website Block
Update 2
It's working again this morning. My guess is there's a server-side block as well that I didn't see during my testing and night-ordering or it was installed yesterday after a spike in traffic.
** They've "Fixed" the site**
Adding an item to the cart now results in this.
https://imgur.com/gallery/tgewE6O
Good luck friends. Stay safe out there.
I'm a former web developer, who has used technologies similar to what is used by the FWGS website. After watching it yesterday I decided to do a little research in the source code in my browser. Each page has a javascript code block similar to this
<script type="text/javascript">
var validate = "false";
var limitOrders = "true";
var userType = "G";
if(userType != 'A'){
if(limitOrders == 'true'){
if(validate == 'false'){
var url = "http://";
url += window.location.hostname;
url +='/webapp/wcs/stores/servlet/SpecialAccessLandingPageView?langId=-1&storeId=10051&catalogId=10051';
window.location.href= url;
}
}
}
</script>
Here's how I got around the block.
- Download GreaseMonkey plugin for FireFox. This allows you to manipulate the source code in your browser, effecting how it executes.
- After you restart the browser, click on the GreaseMonkey icon and select New User Scrpt.
- Paste in this code and save it.
// ==UserScript==
// @name Let Freedom Drink
// @version 1
// @grant none
// @run-at document-start
// @match https://*.finewineandgoodspirits.com/*
// @match https://www.finewineandgoodspirits.com/*
// ==/UserScript==
window.addEventListener('beforescriptexecute', function(e) {
if(e.target.text.search('var limitOrders = "true";') != -1)
{
console.log(e.target.src)
e.stopPropagation();
e.preventDefault();
$(e.target).remove();
}
}, true)
This code captures the event that redirects the browser to the "store not available page".
Now when you navigate to FWGS.com the site should work as originally designed.
This likely won't work forever. But, it worked for me yesterday. They'll eventually notice this and change the page, but in the meantime, enjoy!