Skip to content

Instantly share code, notes, and snippets.

Philip Jewell philipjewell

Block or report user

Report or block philipjewell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
philipjewell /
Last active Nov 9, 2019
Download all your photobucket images in bulk via CLI


On Jul 4, 2017 posted an article about photobucket (silently) no longer allowing their users to source their images on 3rd party websites for free, thus leaving websites all over the web broken displaying the following image in replace:

Me being one of those individual, I attempted to go into my photobucket account and download my content as I now have my own hosting I am able to store those images on; however, the only ways to bulk download (on desktop) is by downloading albums through their interface. Doing so, gave me the following error message: "Hmmm. Something didn't click. Want to give it another shot? Try again now."

Doing this serveral times, in different browsers (chrome, firefox and safari), after disabling all my addons and extensions (including ad blockers), it still didn't work.

At this point, doing anything on their website w

philipjewell /
Last active Aug 20, 2017
Allow geo restricting with nginx

For this example, using multiple nginx conditions we're leveraging MaxMind's GeoIP. Here we are only allowing traffic from Brazil and the IP address of: 192.171.XXX.XXX (our local IP address). You can find your local IP address using websites like or Googling "what is my ip address" should return your local IP. You can find the list of country codes here, as well as use Regex in order to pipe together IP addresses and/or countries.

Listed below are a few if statements we're placing in the nginx config of the site. This will allow us to set values and determine what the response will be depending on what those values equal:

set $allowed_geo 0;
set $allowed_ipaddr 0;
philipjewell /
Created Aug 20, 2017
PHP function check


If you're doing shared hosting, it is extremely likely your provider has some sort of restrictions on the platform for what you can run. You can use this script to test if the function you are trying to use is restricted by that provider:

To dowload it via CLI:

curl -O

Keybase proof

I hereby claim:

  • I am philipjewell on github.
  • I am philipjewell ( on keybase.
  • I have a public key ASDLZk177Y3_ktyUFUYCR316vfROlvA37AsWADeg2JzAdQo

To claim this, I am signing this object:

You can’t perform that action at this time.